Skip to content

Commit 73e588f

Browse files
committed
fix image centering not working
1 parent c4a1435 commit 73e588f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Layout.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@
44
margin: 0 auto !important;
55
}
66

7-
/* Always center mermaid diagrams and embedded images */
8-
.image-embed,
97
.excalidraw-embedded-img {
108
margin: auto !important;
119
}
1210

11+
/* Always center mermaid diagrams and images */
12+
p:has(.image-embed),
13+
p:has(img),
1314
.mermaid {
1415
display: flex;
1516
justify-content: center;
1617
}
1718

1819
/* ![[img.png|right|100]] */
20+
1921
.image-embed[alt*="left"] {
2022
float: left;
2123
clear: left;

0 commit comments

Comments
 (0)