How to remove these gaps?

Just started using Obsidian and I’m loving every second of it…
But got stuck with a problem…

I’ve a large gap around the editor panel…
I searched everywhere for the solution and even tried turning off the "readable line length
But no result…

How do I remove the gap around?

Try toggling the setting for Readable line length in Settings > Editor

Hey @Mystique.

So. If I got you right, you wish to remove the ‘padding’ that is outside of the pane where the text appears.

Add the following CSS snippet (search the forum for how):

.markdown-preview-view .markdown-preview-sizer, .markdown-source-view .CodeMirror {
   max-width: 100% !important;
   margin: 0;
}

Turn off Readable Line Length to see it in effect.

If you are now bothered by the text to going on for the full width, replace the above code with:

.markdown-preview-view .markdown-preview-sizer, .markdown-source-view .CodeMirror {
   width: 100%;
   max-width: 670px !important;
   margin: 0;
}

Let me know if that is what you were looking for. :slight_smile:

I tried doing that but didn’t work…

Thanks Geffrey…

It worked flawlessly

1 Like

Glad it worked! Enjoy Obsidian.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.