AnubisNekhet / AnuPpuccin

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

fix file-tree alignment #231

Closed pryley closed 9 months ago

pryley commented 9 months ago

This is how Obsidian aligns the file-tree by default. It may look misaligned when expanded because of the vertical lines, but it's actually not as the file names line up with the folder names.

image image

This fix ensures the file-tree remains visually aligned when file icons are enabled (since that what issue #215 was about).

"Visually aligned" meaning the folder/file names remain aligned like this:

image

Here with file icons enabled:

image image

And also here with both folder/file icons enabled:

image image

Because this issue is only related to file icon alignment, I have removed the "File Icon Alignment" option since I don't think it's necessary (file icons should be aligned by default and they shouldn't change the file-tree layout when enabled).

pryley commented 9 months ago

I haven't committed the compiled CSS for an easier merge, so make sure to run make build when testing.

AnubisNekhet commented 9 months ago

Thank you so much! This issue was bothering me for a while, I'm glad to finally see a fix!