diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-08-12 20:20:44 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-08-12 20:20:44 +0200 |
commit | eaa64728b7016aab3a901e8886652f0612adb22c (patch) | |
tree | 48b599a99564fff9ef0c8f33ec9ff1a1f25415f9 /subprojects/frontend/src/editor/EditorArea.tsx | |
parent | chore(deps): bump dependencies (diff) | |
download | refinery-eaa64728b7016aab3a901e8886652f0612adb22c.tar.gz refinery-eaa64728b7016aab3a901e8886652f0612adb22c.tar.zst refinery-eaa64728b7016aab3a901e8886652f0612adb22c.zip |
refactor(frontend): EditorParent line numbers
Diffstat (limited to 'subprojects/frontend/src/editor/EditorArea.tsx')
-rw-r--r-- | subprojects/frontend/src/editor/EditorArea.tsx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/subprojects/frontend/src/editor/EditorArea.tsx b/subprojects/frontend/src/editor/EditorArea.tsx index 14294371..d4305610 100644 --- a/subprojects/frontend/src/editor/EditorArea.tsx +++ b/subprojects/frontend/src/editor/EditorArea.tsx | |||
@@ -134,13 +134,7 @@ function EditorArea(): JSX.Element { | |||
134 | return ( | 134 | return ( |
135 | <EditorParent | 135 | <EditorParent |
136 | className="dark" | 136 | className="dark" |
137 | sx={{ | 137 | showLineNumbers={editorStore.showLineNumbers} |
138 | '.cm-lineNumbers': editorStore.showLineNumbers | ||
139 | ? {} | ||
140 | : { | ||
141 | display: 'none !important', | ||
142 | }, | ||
143 | }} | ||
144 | ref={editorParentRef} | 138 | ref={editorParentRef} |
145 | /> | 139 | /> |
146 | ); | 140 | ); |