From d4104d6a5dba5f6e9f19a30ddb8e6e713c60645e Mon Sep 17 00:00:00 2001 From: Jonas Date: Mon, 13 Jul 2026 11:05:35 +0200 Subject: [PATCH] fix(FloatingButtons): in headings, leave space for the anchor icon This is a pure regression fix to be backportable. It's still ugly as floating buttons and anchor icon still overlap, but we don't have more space available on narrow screens in Collectives. Signed-off-by: Jonas --- src/components/Editor/FloatingButtons.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Editor/FloatingButtons.vue b/src/components/Editor/FloatingButtons.vue index 303c04d6c9b..4a63ec48b92 100644 --- a/src/components/Editor/FloatingButtons.vue +++ b/src/components/Editor/FloatingButtons.vue @@ -64,7 +64,7 @@ export default { computed: { isHeadingNode() { - return this.node?.type === this.editor.schema.nodes.heading + return this.node?.type.name === 'heading' }, }, @@ -99,7 +99,7 @@ export default { display: flex; &.heading { - margin-right: 16px; + left: calc(-34px - 14px) !important; } }