Skip to content

Commit

Permalink
Fix #611
Browse files Browse the repository at this point in the history
  • Loading branch information
kepano committed Sep 29, 2023
1 parent 55eef7f commit 1a18072
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Minimal.css
Original file line number Diff line number Diff line change
Expand Up @@ -1633,6 +1633,12 @@ body {
.minimal-line-nums .workspace-leaf-content[data-type=markdown] .is-readable-line-width.is-rtl {
--file-margins: 1rem var(--folding-offset) 0 0; }

.minimal-line-nums .mod-right-split .markdown-preview-view,
.minimal-line-nums .mod-right-split .markdown-source-view.mod-cm6 .cm-scroller,
.minimal-line-nums .mod-left-split .markdown-preview-view,
.minimal-line-nums .mod-left-split .markdown-source-view.mod-cm6 .cm-scroller {
--file-margins: var(--size-4-5) var(--size-4-5) var(--size-4-5) 48px; }

/* Embeds ------------------------------------ */
.markdown-preview-view .inline-embed {
--max-width: 100%; }
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Minimal",
"version": "7.2.2",
"version": "7.2.3",
"minAppVersion": "1.1.9",
"author": "@kepano",
"authorUrl": "https://twitter.com/kepano",
Expand Down
6 changes: 6 additions & 0 deletions src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1590,6 +1590,12 @@ body {
.minimal-line-nums .workspace-leaf-content[data-type=markdown] .is-readable-line-width.is-rtl {
--file-margins: 1rem var(--folding-offset) 0 0; }

.minimal-line-nums .mod-right-split .markdown-preview-view,
.minimal-line-nums .mod-right-split .markdown-source-view.mod-cm6 .cm-scroller,
.minimal-line-nums .mod-left-split .markdown-preview-view,
.minimal-line-nums .mod-left-split .markdown-source-view.mod-cm6 .cm-scroller {
--file-margins: var(--size-4-5) var(--size-4-5) var(--size-4-5) 48px; }

/* Embeds ------------------------------------ */
.markdown-preview-view .inline-embed {
--max-width: 100%; }
Expand Down
2 changes: 1 addition & 1 deletion src/css/main.min.css

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion src/scss/features/block-width.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,22 @@ body {
.minimal-line-nums .workspace-leaf-content[data-type=markdown] {
--file-margins: var(--size-4-8) var(--size-4-8) var(--size-4-8) 48px;
&.is-rtl {
--file-margins: var(--size-4-8) 48px var(--size-4-8) var(--size-4-8);}
--file-margins: var(--size-4-8) 48px var(--size-4-8) var(--size-4-8);}
.is-readable-line-width {
--file-margins: 1rem 0 0 var(--folding-offset);
&.is-rtl {
--file-margins: 1rem var(--folding-offset) 0 0;}
}
}

.minimal-line-nums .mod-right-split,
.minimal-line-nums .mod-left-split {
.markdown-preview-view,
.markdown-source-view.mod-cm6 .cm-scroller {
--file-margins: var(--size-4-5) var(--size-4-5) var(--size-4-5) 48px;
}
}

/* Embeds ------------------------------------ */
.markdown-preview-view .inline-embed {
--max-width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion theme.css

Large diffs are not rendered by default.

0 comments on commit 1a18072

Please sign in to comment.