Skip to content

Commit 129a4a5

Browse files
authored
fix: tooltip word break (#3436)
Wrap long unbroken words in tooltips to make it appear within the tooltip on hover. Fixes #3435 Amp-Thread-ID: https://ampcode.com/threads/T-01a1a255-7e73-75fc-b511-5c047a98a89a
1 parent bc4acfb commit 129a4a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎app/ui/lib/Tooltip.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export const Tooltip = ({ delay = 250, children, content, placement }: TooltipPr
119119
{open && (
120120
<div
121121
ref={refs.setFloating}
122-
className={cn('ox-tooltip max-content max-w-sm', zIndex)}
122+
className={cn('ox-tooltip max-content max-w-sm wrap-break-word', zIndex)}
123123
{...getFloatingProps()}
124124
style={floatingStyles}
125125
>

0 commit comments

Comments
 (0)