mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
set indicator size to fit the content rather than to a min width
This commit is contained in:
parent
c31780123b
commit
145cf1e589
@ -15,7 +15,7 @@ const Indicator = styled.div<IndicatorProps>(
|
||||
({ color, size }) => ({
|
||||
boxSizing: 'border-box',
|
||||
padding: `0 ${size / 2}px`,
|
||||
minWidth: size,
|
||||
width: `fit-content`,
|
||||
minHeight: size,
|
||||
fontSize: size / 1.4,
|
||||
lineHeight: `${size}px`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user