Skip to content

Commit cf28f5a

Browse files
committed
Fix markdown content not centered when window is maximized
The CSS selector #main-content > .markdown-body used the direct child combinator, but .markdown-body is nested inside #tool-preview-main, so align-self: center never applied.
1 parent ac99c35 commit cf28f5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/markdown_preview_core/js/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@
744744
overflow-y: auto;
745745
}
746746

747-
#main-content > .markdown-body {
747+
#tool-preview-main > .markdown-body {
748748
flex: 0 1 auto;
749749
align-self: center;
750750
}

0 commit comments

Comments
 (0)