mirror of
https://github.com/outline/outline.git
synced 2026-12-01 01:14:11 +03:00
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:
1 parent
5633a93e2f
commit
9c7fee9f5c
1 file changed
+15
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user