makemd
makemd copied to clipboard
[BUG] - make.md doesn't play nice with the minimal theme
Make.md doesn't seem to play nice with the most used theme called "minimal". There is a outlining issue, you can see it in this screenshot:
As you can see, the padding is missing that should be around the main content, and the text is weirdly way to much to the left. tweaking the setting like readable line length has no impact.
However, I did made a quick workaround by making a css snippet that seemingly fixes this. however, I'm not familiar with the css of obsidian, the make.md plugin or the minimal theme, so I'm not sure if this is useable as a permanent solution. I just scrambled this together in 30 minutes.
The css:
/* fixing disappearing page padding in spaces view */
.is-readable-line-width {
--file-margins: var(--size-4-8) var(--size-4-8) var(--size-4-8) 48px;
}
/* fixing the weird left offset on the main text item in spaces view */
.markdown-source-view.mod-cm6.is-readable-line-width .cm-contentContainer.cm-contentContainer>.cm-content>div {
width: unset;
margin-inline: 0 !important;
}
body :not(.canvas-node) .markdown-source-view.mod-cm6 .cm-gutters {
position: relative !important;
}
.markdown-source-view.mod-cm6 .cm-gutters {
margin-inline-end: var(--file-folding-offset) !important;
}
This results in the following:
Hopefully this helps somewhat.