Skip to content

Commit

Permalink
fix(tooltip): change max width of tooltip content to 320px
Browse files Browse the repository at this point in the history
  • Loading branch information
chimpdev committed Nov 5, 2024
1 parent f084b5c commit f661ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function Tooltip({ children, content, side, sideOffset, hide, del
<RadixTooltip.Portal>
<RadixTooltip.Content
className={cn(
'z-10 max-w-[calc(100%_-_10px)] rounded-lg bg-black p-2 text-center text-xs font-semibold text-white [transform-origin:var(--radix-tooltip-content-transform-origin)] sm:max-w-[unset] sm:rounded-full sm:px-2 sm:py-1 dark:bg-white dark:text-black',
'z-10 max-w-[320px] rounded-lg bg-black p-2 text-center text-xs font-semibold text-white [transform-origin:var(--radix-tooltip-content-transform-origin)] sm:max-w-[unset] sm:rounded-full sm:px-2 sm:py-1 dark:bg-white dark:text-black',
contentClassOverride
)}
sideOffset={sideOffset || 5}
Expand Down

0 comments on commit f661ed4

Please sign in to comment.