Skip to content

Commit

Permalink
Solve the issue with the tooltip when the text is a URL
Browse files Browse the repository at this point in the history
  • Loading branch information
novakzaballa committed Jun 24, 2024
1 parent 3c5cf08 commit 05fec0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/web/components/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ const Tooltip: FC<TooltipProps> = ({
{plainText ? (
`${children}`
) : (
<div dangerouslySetInnerHTML={{ __html: children }} />
<div
style={{ wordBreak: 'break-word' }}
dangerouslySetInnerHTML={{ __html: children }}
/>
)}
</ReactTooltip>
)}
Expand Down

0 comments on commit 05fec0e

Please sign in to comment.