AnubisNekhet / AnuPpuccin

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

[Bug] List indent is off in read mode compared to edit mode. #258

Open soulsynapse opened 4 months ago

soulsynapse commented 4 months ago

Describe the bug If you change the "list indent" option, and toggle between reading and edit, the lists indent way more in reading.

To Reproduce Steps to reproduce the behavior:

  1. Make a new vault
  2. Install anuppucin
  3. Install style settings
  4. Go to list indent
  5. Change it from 2em to 4em
  6. hit ctrl+e to toggle between reading and regular

Expected behavior The difference is a big problem for smaller window sizes, such as with floating callout CSS or an auxiliary note in the collapsible gutters.

Screenshots If applicable, add screenshots to help explain your problem.

image

soulsynapse commented 4 months ago

Here's the fix

.markdown-rendered ul:first-child, .markdown-rendered ol:first-child { padding-left: 2em; }

Argimko commented 2 months ago

I used this fix:

.cm-formatting-list-ul {
   margin-right: 0.3em;
}