obsidian-org-mode icon indicating copy to clipboard operation
obsidian-org-mode copied to clipboard

Problem with margin

Open fahad5359 opened this issue 1 year ago • 8 comments

I am encountering an issue when runing the plug-in. Where the text goes waay to the right. after investigation i found that the problem with the margin.

<div class="CodeMirror-sizer" style="margin-left: 1314px; margin-bottom: 0px; border-right-width: 50px; min-height: 527px; min-width: 848.763px; padding-right: 0px; padding-bottom: 0px;">

After updating the margin-left: 1314px; to margin-left: 100px; the issue is gone...

Photo attached Regards

Capture

Capture2

fahad5359 avatar Jan 29 '24 09:01 fahad5359

What theme is that? Does it happen with the default theme?

ryanpcmcquen avatar Feb 08 '24 07:02 ryanpcmcquen

Yep, this is the the default theme

fahad5359 avatar Feb 08 '24 07:02 fahad5359

Having the same issue, it just started.

aareman avatar Mar 06 '24 02:03 aareman

Same issue here on mobile (iOS).

Obsidian version: 1.15.12 (134)

image

zzeitt avatar Apr 20 '24 06:04 zzeitt

Very busy at the moment, but if someone has a PR to fix this I will merge/release it.

ryanpcmcquen avatar Apr 20 '24 06:04 ryanpcmcquen

i can confirm that remove the gutter setting will solve the margin issue

src/main.ts

-            foldGutter: {
-                minFoldSize: 1,
-            },
-            foldOptions: {
-                widget: " ...",
-            },
-            gutters: ["CodeMirror-foldgutter"],
+           gutters: [],

nohzafk avatar Aug 04 '24 12:08 nohzafk

@nohzafk did you try that with only changing the gutter settings (and keeping the folding setting)?

ryanpcmcquen avatar Aug 04 '24 18:08 ryanpcmcquen

I tried, I can open the org file on both cases, but the format is not rendered correctly.

nohzafk avatar Aug 05 '24 17:08 nohzafk