Skip to content

Commit

Permalink
fix(portal): adjust hover style bug (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
KsiBart authored Nov 19, 2024
1 parent a48d9a5 commit 8391627
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,27 +86,27 @@ const APIServerCard = ({ item, refetchList }: Props) => {
style={{ borderRadius: 4, width: "100%" }}
title={
<Flex justify="space-between" gap={12} align="center">
<Flex gap={8}>
<Flex gap={8} align="center">
<Text.NormalLarge>
{get(item, "metadata.name", "")}
</Text.NormalLarge>
<div onMouseEnter={trueHover} onMouseLeave={falseHover}>
<Flex onMouseEnter={trueHover} onMouseLeave={falseHover}>
{isHover && isApiInUse ? (
<Button
style={{ padding: "0px" }}
style={{ padding: "5px 0" }}
type="link"
onClick={() => setOpenMappingDrawer(true)}
>
Check details
</Button>
) : (
<Tag color={isApiInUse ? "blue" : ""} >
<Tag color={isApiInUse ? "blue" : ""}>
<Text.LightSmall>
{isApiInUse ? "In use" : "Not in use"}
</Text.LightSmall>
</Tag>
)}
</div>
</Flex>
</Flex>
<Flex>
<Button type="link" onClick={handleEdit}>
Expand Down

0 comments on commit 8391627

Please sign in to comment.