Editor (#100): wrap long lines in Markdown source mode (no-wrap kept when line numbers are on)

This commit is contained in:
Yuri Karamian
2026-06-11 23:59:27 +02:00
parent 0f7b1debbb
commit f19c3c2caa
+8 -2
View File
@@ -6620,12 +6620,18 @@
padding: 0; padding: 0;
margin: 0; margin: 0;
user-select: text; user-select: text;
white-space: pre; /* Wrap long lines instead of horizontal-scrolling (matches mobile). (issue #100) */
overflow-x: auto; white-space: pre-wrap;
word-break: break-word;
overflow-x: hidden;
} }
.source-editor.with-line-numbers { .source-editor.with-line-numbers {
padding-left: 48px; padding-left: 48px;
/* The line-number gutter has one fixed row per line, so wrapping would desync it.
Keep no-wrap (horizontal scroll) whenever line numbers are on. (issue #100) */
white-space: pre;
overflow-x: auto;
} }
.line-numbers-clip { .line-numbers-clip {