fix(display): fix width value is not valid in firefox

This commit is contained in:
unix
2020-04-09 13:27:12 +08:00
parent c2c4b4c99f
commit 1502ee101f

View File

@@ -39,7 +39,7 @@ const Display: React.FC<React.PropsWithChildren<DisplayProps>> = React.memo(({
margin: 0 auto;
border-radius: 4px;
overflow: hidden;
width: ${width ? width : 'fit-content'};
width: ${width ? width : 'max-content'};
box-shadow: ${shadow ? theme.expressiveness.shadowLarge : 'none'};
max-width: 100%;
}