diff options
| author | Clawd <ai@clawd.bot> | 2026-02-28 14:47:43 -0800 |
|---|---|---|
| committer | Clawd <ai@clawd.bot> | 2026-02-28 14:47:43 -0800 |
| commit | 4bd42f9c508345391806eb7c5c2ed39863764695 (patch) | |
| tree | c1409c8deb8bc09ce198c521290c6f53fc17b0f2 /renderer/src/styles/globals.css | |
| parent | 812702aa9afbfe8de7672520852a6066341a4dc0 (diff) | |
Fix CodeMirror line wrapping and container overflow
- Add EditorView.lineWrapping for soft word wrap
- Fix container CSS to prevent horizontal overflow
- Add min-width: 0 to document-pane for proper flex shrinking
- Add overflow: hidden to contain the editor
Diffstat (limited to 'renderer/src/styles/globals.css')
| -rw-r--r-- | renderer/src/styles/globals.css | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/renderer/src/styles/globals.css b/renderer/src/styles/globals.css index f115734..7ad199e 100644 --- a/renderer/src/styles/globals.css +++ b/renderer/src/styles/globals.css | |||
| @@ -113,6 +113,8 @@ body { | |||
| 113 | display: flex; | 113 | display: flex; |
| 114 | flex-direction: column; | 114 | flex-direction: column; |
| 115 | border-right: 1px solid var(--border); | 115 | border-right: 1px solid var(--border); |
| 116 | min-width: 0; | ||
| 117 | overflow: hidden; | ||
| 116 | } | 118 | } |
| 117 | 119 | ||
| 118 | .document-header { | 120 | .document-header { |
| @@ -155,10 +157,16 @@ body { | |||
| 155 | .codemirror-editor { | 157 | .codemirror-editor { |
| 156 | flex: 1; | 158 | flex: 1; |
| 157 | overflow: hidden; | 159 | overflow: hidden; |
| 160 | min-height: 0; | ||
| 158 | } | 161 | } |
| 159 | 162 | ||
| 160 | .codemirror-editor .cm-editor { | 163 | .codemirror-editor .cm-editor { |
| 161 | height: 100%; | 164 | height: 100%; |
| 165 | max-width: 100%; | ||
| 166 | } | ||
| 167 | |||
| 168 | .codemirror-editor .cm-scroller { | ||
| 169 | overflow: auto !important; | ||
| 162 | } | 170 | } |
| 163 | 171 | ||
| 164 | .codemirror-editor .cm-gutters { | 172 | .codemirror-editor .cm-gutters { |
