Commit 3d4b227f authored by tom's avatar tom

decrease active label width

parent c9a77057
...@@ -12,6 +12,7 @@ const getActiveLabelStyles = (theme: Dict, fc: string, bc: string, size: 'md' | ...@@ -12,6 +12,7 @@ const getActiveLabelStyles = (theme: Dict, fc: string, bc: string, size: 'md' |
color: getColor(theme, fc), color: getColor(theme, fc),
fontSize: 'xs', fontSize: 'xs',
lineHeight: '16px', lineHeight: '16px',
borderTopRightRadius: 'none',
}; };
switch (size) { switch (size) {
...@@ -38,6 +39,7 @@ const getDefaultLabelStyles = (size: 'md' | 'lg') => { ...@@ -38,6 +39,7 @@ const getDefaultLabelStyles = (size: 'md' | 'lg') => {
fontSize: 'md', fontSize: 'md',
lineHeight: '20px', lineHeight: '20px',
padding: '18px 16px', padding: '18px 16px',
right: '18px',
}; };
} }
...@@ -46,6 +48,7 @@ const getDefaultLabelStyles = (size: 'md' | 'lg') => { ...@@ -46,6 +48,7 @@ const getDefaultLabelStyles = (size: 'md' | 'lg') => {
fontSize: 'md', fontSize: 'md',
lineHeight: '24px', lineHeight: '24px',
padding: '28px 24px', padding: '28px 24px',
right: '26px',
}; };
} }
} }
...@@ -107,7 +110,6 @@ const variantFloating: PartsStyleFunction<typeof parts> = (props: StyleFunctionP ...@@ -107,7 +110,6 @@ const variantFloating: PartsStyleFunction<typeof parts> = (props: StyleFunctionP
label: { label: {
...getDefaultLabelStyles(size), ...getDefaultLabelStyles(size),
left: '2px', left: '2px',
right: '2px',
top: '2px', top: '2px',
zIndex: 2, zIndex: 2,
position: 'absolute', position: 'absolute',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment