Skip to content

Commit 9a46af3

Browse files
Stephan AngoStephan Ango
authored andcommitted
Fix line width in embeds
1 parent f012d67 commit 9a46af3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

obsidian.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,14 @@ border-bottom:1px solid #999;
11951195

11961196
/* Transcluded notes embeds */
11971197

1198+
1199+
.markdown-preview-view.is-readable-line-width .markdown-embed .markdown-preview-sizer {
1200+
max-width:100%;
1201+
width:100%;
1202+
}
1203+
.markdown-embed h1:first-child {
1204+
margin-block-start: 0em;}
1205+
11981206
.markdown-preview-view .markdown-embed {
11991207
margin-top:var(--nested-padding);
12001208
padding:0 calc(var(--nested-padding) / 2) 0 var(--nested-padding);
@@ -2475,4 +2483,4 @@ color: #5cc863;
24752483
.theme-light.minimal-light-contrast .mod-left-split .vertical-tab-header::-webkit-scrollbar-track,
24762484
.theme-light.minimal-light-contrast .mod-left-split .workspace-tabs ::-webkit-scrollbar-track {
24772485
border-color:var(--background-modifier-border-hover);
2478-
}
2486+
}

0 commit comments

Comments
 (0)