mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Add max width to tooltip
This commit is contained in:
@@ -10,6 +10,7 @@ const StyledTooltip = styled(MantineTooltip)`
|
||||
export const Tooltip = ({ children, ...rest }: TooltipProps) => {
|
||||
return (
|
||||
<StyledTooltip
|
||||
multiline
|
||||
withinPortal
|
||||
pl={10}
|
||||
pr={10}
|
||||
@@ -20,6 +21,7 @@ export const Tooltip = ({ children, ...rest }: TooltipProps) => {
|
||||
background: 'var(--tooltip-bg)',
|
||||
boxShadow: '4px 4px 10px 0px rgba(0,0,0,0.2)',
|
||||
color: 'var(--tooltip-fg)',
|
||||
maxWidth: '250px',
|
||||
},
|
||||
}}
|
||||
{...rest}
|
||||
|
||||
Reference in New Issue
Block a user