Skip to content

Commit

Permalink
fix: Show padding/margin handlers for link block as well
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshetty3416 committed Jan 20, 2025
1 parent 5102e26 commit d080e8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/BlockEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const showPaddingHandler = computed(() => {
!props.editable &&
!blockController.multipleBlocksSelected() &&
!props.block.isSVG() &&
!props.block.isText()
(!props.block.isText() || (props.block.isLink() && props.block.hasChildren()))
);
});
Expand All @@ -107,7 +107,7 @@ const showMarginHandler = computed(() => {
!resizing.value &&
!props.editable &&
!blockController.multipleBlocksSelected() &&
!props.block.isText()
(!props.block.isText() || (props.block.isLink() && props.block.hasChildren()))
);
});
Expand Down

0 comments on commit d080e8b

Please sign in to comment.