Skip to content

Commit

Permalink
update: added no content controls check
Browse files Browse the repository at this point in the history
  • Loading branch information
up1512001 committed Nov 10, 2024
1 parent fc8f836 commit 4a7eabc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/cover/edit/block-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ export default function CoverBlockControls( {
} );
};

const hasNonContentControls = blockEditingMode === 'default';
const isContentOnlyMode = blockEditingMode === 'contentOnly';

return (
<>
{ ! isContentOnlyMode && (
{ ! isContentOnlyMode && hasNonContentControls && (
<BlockControls group="block">
<>
<BlockAlignmentMatrixControl
Expand Down

0 comments on commit 4a7eabc

Please sign in to comment.