Bluemoondragon07 / Obsidian-Serenity

A theme for Obsidian designed to be simple, minimalistic, and focus-promoting.
The Unlicense
45 stars 2 forks source link

After updating to v1.0.3, the display is distorted in live preview mode. #11

Closed FScoward closed 1 year ago

FScoward commented 1 year ago

Thank you for providing an excellent theme. I really love it, but after the v1.0.3 update, the display has become distorted.

image

/* make edit mode use a different readable line length than reading mode */
  .markdown-source-view.mod-cm6.is-readable-line-width .cm-sizer,
  .markdown-source-view.mod-cm6.is-readable-line-width .cm-content,
  .markdown-source-view.mod-cm6.is-readable-line-width .cm-line  {
    width: var(--editing-file-line-width) !important;
    margin: auto;
    padding: 0;
  }

↓ Removing "margin: auto;" resolves the display distortion issue.

/* make edit mode use a different readable line length than reading mode */
  .markdown-source-view.mod-cm6.is-readable-line-width .cm-sizer,
  .markdown-source-view.mod-cm6.is-readable-line-width .cm-content,
  .markdown-source-view.mod-cm6.is-readable-line-width .cm-line  {
    width: var(--editing-file-line-width) !important;
    padding: 0;
  }

image

Bluemoondragon07 commented 1 year ago

Hi! Thanks for pointing this issue out. This has been fixed in the latest update; enjoy!