Skip to content

Commit

Permalink
fix(hoverCard): fix: update hover card to show background only at bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
saithsab877 committed Dec 16, 2024
1 parent 9c64b0c commit 7685c66
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/components/Universe/CursorTooltip/HoverCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export const HoverCard = ({ node }: Props) => {
const TooltipContainer = styled(Flex)`
width: 390px;
min-height: 100px;
background: ${colors.HOVER_CARD_BG};
border-radius: 8px;
padding: 15px;
padding-bottom: 3px !important;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Universe/CursorTooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const CursorTooltip = () => {
const TooltipContainer = styled(Flex)`
position: fixed;
background: ${colors.BG1};
color: white;
border-bottom: 5px solid ${colors.HOVER_CARD_BG};
padding: 5px;
border-radius: 3px;
pointer-events: none; /* Tooltip won't block mouse events */
Expand Down
2 changes: 1 addition & 1 deletion src/utils/colors/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const colors = {
DIVIDER_4: 'rgba(46, 55, 67, 1)',
INPUT_BG: 'rgba(255, 255, 255, 0.05)',
INPUT_PLACEHOLDER: 'rgba(255, 255, 255, 0.5)',
HOVER_CARD_BG: 'rgba(41, 44, 54, 1)',
HOVER_CARD_BG: 'rgba(29,31,38,255)',
} as const

export type ColorName = keyof typeof colors

0 comments on commit 7685c66

Please sign in to comment.