File tree Expand file tree Collapse file tree
apps/webapp/app/components/code Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,7 +84,10 @@ export function darkTheme(): Extension {
8484 backgroundColor : "var(--color-editor-search-match-selected)" ,
8585 } ,
8686
87- ".cm-activeLine" : { backgroundColor : highlightBackground } ,
87+ // Only highlight the active line while the editor has focus - on an
88+ // unfocused editor the resting cursor paints a phantom gray bar
89+ ".cm-activeLine" : { backgroundColor : "transparent" } ,
90+ "&.cm-focused .cm-activeLine" : { backgroundColor : highlightBackground } ,
8891 ".cm-selectionMatch" : { backgroundColor : "var(--color-editor-selection-match)" } ,
8992
9093 "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket" : {
@@ -99,6 +102,9 @@ export function darkTheme(): Extension {
99102 } ,
100103
101104 ".cm-activeLineGutter" : {
105+ backgroundColor : "transparent" ,
106+ } ,
107+ "&.cm-focused .cm-activeLineGutter" : {
102108 backgroundColor : highlightBackground ,
103109 } ,
104110
You can’t perform that action at this time.
0 commit comments