Skip to content

Commit 090f9d2

Browse files
authored
Merge pull request #721 from dcastil/patch-1
fix(@theme-ui/prism): Fix code block line height bug in Safari
2 parents 3c6928d + fd7a4e2 commit 090f9d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/prism/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default ({ children, className: outerClassName, title, ...props }) => {
2727
{line.map((token, key) => (
2828
<span
2929
{...getTokenProps({ token, key })}
30-
sx={{ display: 'inline-block' }}
30+
sx={token.empty ? { display: 'inline-block' } : undefined}
3131
/>
3232
))}
3333
</div>

0 commit comments

Comments
 (0)