Skip to content

Commit

Permalink
fix: avaliable balance tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Dec 25, 2024
1 parent be6d99e commit 6b2ccb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/ui/components/account/account.card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
shimmerStyles,
} from '@leather.io/ui';

import { useViewportMinWidth } from '@app/common/hooks/use-media-query';
import { useScaleText } from '@app/common/hooks/use-scale-text';
import { AccountNameLayout } from '@app/components/account/account-name';
import { PrivateTextLayout } from '@app/components/privacy/private-text.layout';
Expand Down Expand Up @@ -45,6 +46,8 @@ export function AccountCard({
isBalancePrivate,
}: AccountCardProps) {
const scaleTextRef = useScaleText();
const isAtLeastMd = useViewportMinWidth('md');
const tooltipSide = isAtLeastMd ? 'right' : 'bottom';

return (
<Flex
Expand Down Expand Up @@ -107,7 +110,7 @@ export function AccountCard({
Available balance:
<styled.span ml="space.01">
<BasicTooltip
side="right"
side={tooltipSide}
label="Some funds may be unavailable to protect your collectible assets. Disable protection to access your remaining balance."
>
<Flag
Expand Down

0 comments on commit 6b2ccb6

Please sign in to comment.