AnubisNekhet / AnuPpuccin

Personal theme for Obsidian
GNU General Public License v3.0
2.08k stars 163 forks source link

[Feature Request] #125

Open webdavis opened 1 year ago

webdavis commented 1 year ago

Feature Description

Hello,

I would love the ability to adjust the line-width percentage for the page, the same way that Minimal theme offers.

I have attempted to use the following custom CSS snippet:

body {
  --file-line-width: 88%;
}

However, this seems to only look reasonable in Editing mode. Once in Preview Mode, the lines are much too long. I don't know enough about the CSS styling mechanics of Obsidian to understand why there is such a big difference between Editing Mode and Preview Mode --file-line-width 🤷‍♂️.

I'm not sure if this is a reasonable request, but it's what I'm looking for, nonetheless.

Additional context

Here's a screenshot from Minimal Theme of what I am requesting (specifically the "Maximum line width %"):

image
pryley commented 1 year ago

Have you tried enabling the "Readable line length" setting in Obsidian?

image

And if you want to adjust the readable line length, you can do this:

body .is-readable-line-width {
  --file-line-width: 65ch; /* Change this value! */
}
body .is-readable-line-width .cm-content,
body .is-readable-line-width .cm-line {
  --file-line-width: 100%;
}