set indicator size to fit the content rather than to a min width

This commit is contained in:
codebyalex 2019-05-21 05:49:59 -04:00
parent c31780123b
commit 145cf1e589

View File

@ -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`,