fix: Align consecutive floated images horizontally (#13900)

* fix: Align consecutive floated images horizontally

* fix: Align floated images in static HTML
This commit is contained in:
Tom Moor authored and GitHub committed 2026-10-05 21:03:38 -04:00
1 parent 5633a93e2f
commit 9c7fee9f5c
1 file changed
+15
+15
View File
@@ -1063,6 +1063,21 @@ img.ProseMirror-separator {
display: none;
}
// Let paragraphs of floated images collapse so consecutive floats line up
p:has(> .component-image > .image-left-50, > .component-image > .image-right-50) {
min-height: 0;
}
// In static HTML the parser lifts floats out of their paragraph, leaving empty ones
p:empty:has(+ .image-left-50, + .image-right-50),
:is(.image-left-50, .image-right-50) + br.ProseMirror-trailingBreak + p:empty {
min-height: 0;
}
:is(.image-left-50, .image-right-50) + br.ProseMirror-trailingBreak {
display: none;
}
.${EditorStyleHelper.imageCaption} {
border: 0;
display: block;