Skip to content

Commit c9d592c

Browse files
committed
mobile layout tweak
1 parent 035602a commit c9d592c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/components/ui/touch-tooltip.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,17 @@ const TooltipContent = React.forwardRef<
9999
className={cn(
100100
`z-50 overflow-hidden
101101
rounded-md border
102-
bg-white px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,
102+
max-w-[calc(100vw-2rem)]
103+
mx-4
104+
bg-white px-3 py-1.5 text-sm text-popover-foreground
105+
shadow-md animate-in fade-in-0 zoom-in-95
106+
data-[state=closed]:animate-out
107+
data-[state=closed]:fade-out-0
108+
data-[state=closed]:zoom-out-95
109+
data-[side=bottom]:slide-in-from-top-2
110+
data-[side=left]:slide-in-from-right-2
111+
data-[side=right]:slide-in-from-left-2
112+
data-[side=top]:slide-in-from-bottom-2`,
103113
className
104114
)}
105115
{...props}

0 commit comments

Comments
 (0)