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({
106
106
mode : "dark" | "light" | undefined
107
107
lineNumbers ?: boolean
108
108
} ) {
109
- const lineNumbersStyle = lineNumbers
110
- ? ""
111
- : `[data-bright-theme] [data-bright-ln] {
109
+ const lineNumbersStyle = `[data-bright-theme] [data-bright-ln] {
112
110
color: var(--line-number-color);
113
111
margin-right: 1.5ch;
114
112
display: inline-block;
115
113
text-align: right;
116
114
user-select: none;
117
115
}`
116
+
118
117
const css = `${ displayStyle ( mode ) }
119
118
[data-bright-theme] ::selection { background-color: var(--selection-background) }
120
- ${ lineNumbersStyle }
119
+ ${ lineNumbers ? lineNumbersStyle : "" }
121
120
`
122
121
return < style dangerouslySetInnerHTML = { { __html : css } } />
123
122
}
You can’t perform that action at this time.
0 commit comments