Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested lists with word wrap don't indent subsequent lines properly in editor mode #11

Closed
Esras opened this issue Jan 31, 2021 · 7 comments
Closed

Comments

@Esras
Copy link

@Esras Esras commented Jan 31, 2021

When generating a nested list in edit mode with word wrapped turned on, lines that are nested beyond the first level have an incorrect indentation:

Screenshot from 2021-01-30 17-39-57

Playing around with the CSS, the place that seems to cause this is the font-family: var(--font-monospace) setting. Removing that (and thus using whatever font is inherited, which in this case is not monospaced) indents properly, but using a non-monospaced font is undesirable.

Note that it is indented incorrectly on even the first layer of indents, it's just close enough to fool at a glance. Relevant CSS tags seem to be HyperMD-list-line-# and cm-list-#.

@arthurmarquesv
Copy link

@arthurmarquesv arthurmarquesv commented Feb 12, 2021

I'm having this problem to. It's annoying because it breaks my list's relationship lines:

image

Although the indentation is corrected in preview mode, the lines are still broken there, probably because of the problem in edit mode:

image

@Ampa
Copy link

@Ampa Ampa commented Mar 28, 2021

Came to report the same issue.

Any chance of a fix?

@insanum
Copy link
Owner

@insanum insanum commented May 17, 2021

Probably a padding/margin issue. Is this issue only seen in gruvbox? What about the default theme (or others)?

@Esras
Copy link
Author

@Esras Esras commented May 18, 2021

I opened https://forum.obsidian.md/t/indentation-in-lists-with-wrapping-at-wrong-depth/17666 about it, but it got pushed to the bug graveyard because a reload after the change to monospaced fonts in the default theme seems to recalculate the indent and fix itself.

@Ampa
Copy link

@Ampa Ampa commented May 19, 2021

The issue was present in Vileplume (my other favorite theme). I raised the issue with the designer, and they managed to fix the issue.

hungsu/vileplume-obsidian#4

@sanhuesoft
Copy link

@sanhuesoft sanhuesoft commented Jun 6, 2021

Same issue around here. It's so annoying.

@insanum
Copy link
Owner

@insanum insanum commented Nov 8, 2021

Fixed. This was a pain. :-)

@insanum insanum closed this Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants