style: overflow layer padding

This commit is contained in:
jialin
2025-04-15 11:08:01 +08:00
parent 13ded5595a
commit ced45bec65
8 changed files with 67 additions and 88 deletions
+3 -3
View File
@@ -23,9 +23,9 @@ const TitleTip: React.FC<TitleTipProps> = (props) => {
<div style={{ maxHeight: 200, overflowY: 'auto' }} ref={scrollRef}>
<div
style={{
width: 'max-content',
maxWidth: 300,
paddingInline: 10
width: 'fit-content',
maxWidth: 'var(--width-tooltip-max)',
paddingInline: 8
}}
>
{isOverflowing || showTitle ? title || children : ''}