Skip to content

Commit 7da6ef8

Browse files
committed
Change rem to em since spacing depends on custom font size. Tweak spacing values a bit.
1 parent 41d3d76 commit 7da6ef8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Viewers/SyntaxViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const SyntaxViewer: React.FC = () => {
5757
fontFamily: syntaxCustomFont ? 'syntaxFont' : '',
5858
fontSize: syntaxFontSize,
5959
lineHeight: '1.2em',
60-
marginLeft: syntaxShowLineNumbers ? '3rem' : 0,
60+
marginLeft: syntaxShowLineNumbers ? '3.1em' : 0,
6161
},
6262
}}
6363
customStyle={{

src/theme.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const useTheme = () => {
8181
'.textLineNumber::before': {
8282
position: 'absolute',
8383
marginLeft: '-4em',
84-
width: '3rem',
84+
width: '3.7em',
8585
content: 'counter(linenumber)',
8686
fontStyle: 'italic',
8787
textAlign: 'right',

0 commit comments

Comments
 (0)