feat(css-baseline): optimize the performance of pre component in the layout

This commit is contained in:
unix
2020-04-17 15:22:55 +08:00
parent 431f104674
commit dbcde10b76

View File

@@ -186,7 +186,7 @@ const CSSBaseline: React.FC<React.PropsWithChildren<{}>> = React.memo(({
pre {
border: 1px solid ${theme.palette.accents_2};
border-radius: ${theme.layout.radius};
padding: ${theme.layout.gap};
padding: calc(${theme.layout.gap} * 0.75) ${theme.layout.gap};
margin: ${theme.layout.gap} 0;
font-family: ${theme.font.mono};
white-space: pre;