Maybe this request can be merged into an older one. We’ll see what the team and other mods think:
There are heaps of older snippets floating around, so I’ll just add the easiest way to do this with CSS snippets (as of 2025 January) and almost all themes※ is using the --file-line-width
variable. Readable Line Length needs to be enabled in Obsidian’s settings for these to work. For all the notes in a vault:
body {
--file-line-width: 1000px; /* default is 700px */
}
For adjusting individual notes using the cssclasses
Property:
.wide-view {
--file-line-width: 1000px;
}
.max-view {
--file-line-width: 100%;
}
※ The Minimal theme is the only one I know of that requires a slightly different snippet if you don’t want to use their built-in wide
or max
cssclasses.