Skip to content

Commit d32cc42

Browse files
Fix: floating transclusions don't clear (Obsidian)
In Obsidian, floating elements which were then embedded in another page (such as Infoboxes), were not stacking vertically when placed after another Infobox callout (Obsidian-only, no issue in Quartz). Added `clear` property to transclusions in Obsidian if alt text `left` or `right` is present in embed alias.
1 parent 56b0947 commit d32cc42

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mmw-content/.obsidian/snippets/mmw-transclusion-adjustments.css

+5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
float: left;
1515
margin-right: 0.5em;
1616
}
17+
18+
.internal-embed[alt~=right].is-loaded:not(.image-embed), .internal-embed[alt~=right].is-loaded:not(.image-embed) {
19+
clear: both;
20+
}
1721

22+
1823
:not(.lp-embed-float) .is-live-preview .internal-embed:is([alt~=right], [alt~=left]) {
1924
float: unset;
2025
}

0 commit comments

Comments
 (0)