Skip to content

Commit 96a2d1e

Browse files
fix: re-added display: flex to blocks without inline content (#1702)
1 parent 9c70298 commit 96a2d1e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/core/src/editor/Block.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ BASIC STYLES
2323
*/
2424
}
2525

26+
/* We can't set `display: flex` on `.bn-block-content` while it has inline
27+
content (see #1629). However, it's necessary to set alignment of blocks
28+
without content as these can't use `text-align`, so this additional rule is
29+
used. */
30+
.bn-block-content:not(:has(.bn-inline-content)) {
31+
display: flex;
32+
}
33+
2634
.bn-block-content::before {
2735
/* content: ""; */
2836
transition: all 0.2s;

0 commit comments

Comments
 (0)