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; } }