mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-07-24 07:45:57 +02:00
Editor (#100): wrap long lines in Markdown source mode (no-wrap kept when line numbers are on)
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user