diff --git a/src/app/ui/components/account/account.card.tsx b/src/app/ui/components/account/account.card.tsx index 18ea852a89..6ce1a31eaa 100644 --- a/src/app/ui/components/account/account.card.tsx +++ b/src/app/ui/components/account/account.card.tsx @@ -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'; @@ -45,6 +46,8 @@ export function AccountCard({ isBalancePrivate, }: AccountCardProps) { const scaleTextRef = useScaleText(); + const isAtLeastMd = useViewportMinWidth('md'); + const tooltipSide = isAtLeastMd ? 'right' : 'bottom'; return (