mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +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) => {
|
export const Tooltip = ({ children, ...rest }: TooltipProps) => {
|
||||||
return (
|
return (
|
||||||
<StyledTooltip
|
<StyledTooltip
|
||||||
|
multiline
|
||||||
withinPortal
|
withinPortal
|
||||||
pl={10}
|
pl={10}
|
||||||
pr={10}
|
pr={10}
|
||||||
@@ -20,6 +21,7 @@ export const Tooltip = ({ children, ...rest }: TooltipProps) => {
|
|||||||
background: 'var(--tooltip-bg)',
|
background: 'var(--tooltip-bg)',
|
||||||
boxShadow: '4px 4px 10px 0px rgba(0,0,0,0.2)',
|
boxShadow: '4px 4px 10px 0px rgba(0,0,0,0.2)',
|
||||||
color: 'var(--tooltip-fg)',
|
color: 'var(--tooltip-fg)',
|
||||||
|
maxWidth: '250px',
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
{...rest}
|
{...rest}
|
||||||
|
|||||||
Reference in New Issue
Block a user