From 6dccab70b22b7d654eabceaab45691499247c633 Mon Sep 17 00:00:00 2001 From: Matthew Lipski Date: Tue, 20 May 2025 15:31:35 +0200 Subject: [PATCH] Re-added `display: flex` to blocks without inline content --- packages/core/src/editor/Block.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/core/src/editor/Block.css b/packages/core/src/editor/Block.css index a246b30cd..40196d861 100644 --- a/packages/core/src/editor/Block.css +++ b/packages/core/src/editor/Block.css @@ -23,6 +23,14 @@ BASIC STYLES */ } +/* We can't set `display: flex` on `.bn-block-content` while it has inline +content (see #1629). However, it's necessary to set alignment of blocks +without content as these can't use `text-align`, so this additional rule is +used. */ +.bn-block-content:not(:has(.bn-inline-content)) { + display: flex; +} + .bn-block-content::before { /* content: ""; */ transition: all 0.2s;