File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " bright " : patch
3+ ---
4+
5+ Fix line numbers style
Original file line number Diff line number Diff line change @@ -106,18 +106,17 @@ function Style({
106106 mode : "dark" | "light" | undefined
107107 lineNumbers ?: boolean
108108} ) {
109- const lineNumbersStyle = lineNumbers
110- ? ""
111- : `[data-bright-theme] [data-bright-ln] {
109+ const lineNumbersStyle = `[data-bright-theme] [data-bright-ln] {
112110 color: var(--line-number-color);
113111 margin-right: 1.5ch;
114112 display: inline-block;
115113 text-align: right;
116114 user-select: none;
117115 }`
116+
118117 const css = `${ displayStyle ( mode ) }
119118 [data-bright-theme] ::selection { background-color: var(--selection-background) }
120- ${ lineNumbersStyle }
119+ ${ lineNumbers ? lineNumbersStyle : "" }
121120 `
122121 return < style dangerouslySetInnerHTML = { { __html : css } } />
123122}
You can’t perform that action at this time.
0 commit comments