From 476174a8ee6a53e63302fa6fb1113701088b3930 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Thu, 25 Jan 2024 17:38:28 +0400 Subject: [PATCH] Block Editor: Hide the 'Content' panel for locked blocks when there's no content --- .../block-editor/src/components/block-inspector/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/block-editor/src/components/block-inspector/index.js b/packages/block-editor/src/components/block-inspector/index.js index a52b8b9a01507..7b8e5296c4502 100644 --- a/packages/block-editor/src/components/block-inspector/index.js +++ b/packages/block-editor/src/components/block-inspector/index.js @@ -56,9 +56,11 @@ function BlockInspectorLockedBlocks( { topLevelLockedBlock } ) { /> - - - + { contentClientIds.length > 0 && ( + + + + ) } ); }