insanum / obsidian_gruvbox

A gruvbox theme for Obsidian
MIT License
162 stars 38 forks source link

Indentation in code blocks is weird/broken #2

Closed gimbo closed 4 years ago

gimbo commented 4 years ago

Code block indentation seems broken. E.g. consider the following screenshot using the default theme:

Screenshot 2020-05-29 at 00 30 06

Here's how this looks if I switch on the gruvbox theme:

Screenshot 2020-05-29 at 00 30 33

The indentation levels seem to change as I zoom in/out (e.g. via the View menu) — very odd.

Other themes I've tried didn't have this issue.

OS: MacOS 10.14.6 Obsidian: 0.6.4 Gruvbox theme: 4e3e34b4af9c6024a92e6b9adda4cb804b88238f

Other than this, loving the theme — very well organised so I can tweak colours, etc. very easily. Thanks!

insanum commented 4 years ago

I couldn't repro the exact behavior you're seeing exactly but I definitely see issues with weird indentation in code blocks.

Can you please try this small tweak and let me know if it works? With gruvbox CSS installed edit the obsidian.css file and comment out (or delete) line 179 in the .HyperMD-codeblock section which tweaks padding-left.

gimbo commented 4 years ago

That seems to fix it, yes:

Screenshot 2020-05-29 at 09 19 23

insanum commented 4 years ago

Great thanks for testing! :-)