File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export function CodeEditor({
131
131
}
132
132
} , [ ] )
133
133
134
- const lineNumOffset = `${ Math . floor ( Math . log10 ( lineCount ) ) + 2 } em `
134
+ const lineNumOffset = `${ Math . floor ( Math . log10 ( lineCount ) ) + 3 } ch `
135
135
136
136
return (
137
137
< div className = { className } { ...rest } >
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ import { tst } from "../utils/overrides.js"
15
15
import { highlightHTML , useHLJS } from "../utils/HighlightLoader.js"
16
16
17
17
import "../style.css"
18
+ import "../styles/highlight-theme-light.css"
19
+ import "../styles/highlight-theme-dark.css"
18
20
19
21
function isBinaryPath ( path : string ) {
20
22
return binaryExtensions . includes ( path . replace ( / .* \. / , "" ) )
@@ -195,7 +197,7 @@ export function DisplayPaste() {
195
197
</ div >
196
198
< div className = "font-mono relative" role = "article" >
197
199
< pre
198
- style = { { paddingLeft : `${ Math . floor ( Math . log10 ( pasteLineCount ) ) + 2 } em ` } }
200
+ style = { { paddingLeft : `${ Math . floor ( Math . log10 ( pasteLineCount ) ) + 3 } ch ` } }
199
201
dangerouslySetInnerHTML = { { __html : highlightedHTML } }
200
202
/>
201
203
< span
You can’t perform that action at this time.
0 commit comments