Markpad
Markpad copied to clipboard
The right margin of editor mode should be symmetrical as the left margin (just like in the preview mode)
What problem would this solve?
- It's too close to the right. I think it should be symmetrical as the left side. The screenshots show it with the table of contents, but the problem is same without table of contents too.
Screenshots
The space on the left of the editor isn't a page margin. When the outline isn't pinned, it keeps the floating outline button off the text, and line numbers sit there when they're on. The right side has nothing to reserve, so the text runs up to the scrollbar.
The easy fix is to reserve that space only while the button is actually over the editor. With the outline pinned, as in your screenshots, the left gap would shrink.
Notes
- With line numbers off,
lineDecorationsWidthinsrc/lib/utils/editorOptions.tsadds a fixed 42px (TOC_BUTTON_CLEARANCE, from #812) for the 28px button atleft: 8px. - When the outline is expanded,
.toc-toggle-floating.expandedmoves the button into the outline panel, so the 42px clears nothing. Same withtocSide: right: the button sits at the editor's right edge, but the clearance stays on the left. - Monaco has no right padding option. A matching gap on the right would need
wordWrapColumncomputed from the viewport width, which isn't worth it here.
your theme looks nice,what is it
It's Kanagawa.
reopend, because we can still do some thing about it