Skip to content

Commit 9367ac9

Browse files
committed
Limit tooltip content max width
1 parent 2803d68 commit 9367ac9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/tooltip/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const TooltipContentNoArrow = ({
1212
}: React.ComponentProps<typeof TooltipContent>) => {
1313
return (
1414
<TooltipContent
15-
className="[&>span]:hidden text-pretty bg-base-popover border text-popover-foreground shadow-[0px_2px_4px_-1px_rgba(0,0,0,0.06)] shadow-md"
15+
className="[&>span]:hidden max-w-[400px] text-pretty bg-base-popover border text-popover-foreground shadow-[0px_2px_4px_-1px_rgba(0,0,0,0.06)] shadow-md"
1616
sideOffset={sideOffset}
1717
{...props}
1818
>

0 commit comments

Comments
 (0)