You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example CSS Code Snippets above have been updated and tested with v3.0.1 and so should work with newer versions of Zettlr, but the ones below haven't been updated in some time, and are unlikely to work out of the box.
136
-
137
-
138
133
### Set a maximum width for the text
139
134
140
135
If you have a large screen, you may find that lines of your text are very long.
141
136
If you wish to have shorter lines in the editor, with margins on both sides, you can use the following CSS snippet:
142
137
143
138
```css
144
-
#editor {
145
-
--side-margin: calc( 50vw-30em );
146
-
}
147
-
148
-
#editor.CodeMirror {
149
-
margin-left: var(--side-margin);
150
-
}
151
-
152
-
#editor.CodeMirror-scroll {
153
-
padding-right: var(--side-margin);
139
+
.main-editor-wrapper.cm-content {
140
+
max-width: <preferred-line-width>;
141
+
margin-right: auto;
154
142
}
155
-
```
156
-
157
-

158
-
159
-
For the distraction free mode, the CSS snippet needs to be modified as follows:
The example CSS Code Snippets above have been updated and tested with v3.0.1 and so should work with newer versions of Zettlr, but the ones below haven't been updated in some time, and are unlikely to work out of the box.
136
-
137
-
138
133
### Set a maximum width for the text
139
134
140
135
If you have a large screen, you may find that lines of your text are very long.
141
136
If you wish to have shorter lines in the editor, with margins on both sides, you can use the following CSS snippet:
142
137
143
138
```css
144
-
#editor {
145
-
--side-margin: calc( 50vw-30em );
139
+
.main-editor-wrapper.cm-content {
140
+
max-width: <preferred-line-width>;
141
+
margin-right: auto;
146
142
}
147
143
148
-
#editor.CodeMirror {
149
-
margin-left: var(--side-margin);
150
-
}
151
-
152
-
#editor.CodeMirror-scroll {
153
-
padding-right: var(--side-margin);
144
+
.main-editor-wrapper.cm-gutters {
145
+
margin-left: auto;
154
146
}
155
147
```
156
148
157
149

158
-
159
-
For the distraction free mode, the CSS snippet needs to be modified as follows:
0 commit comments