From df57b8345d1aea4a82f5b05ac6d575221b97b9fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?So=CC=88ren=20Wrede?= Date: Tue, 31 Oct 2017 19:54:01 +0100 Subject: [PATCH 1/2] Show inspector also if gallery has 1 image. --- blocks/library/gallery/block.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/library/gallery/block.js b/blocks/library/gallery/block.js index dd7e2da3c5663..e149e70d00e08 100644 --- a/blocks/library/gallery/block.js +++ b/blocks/library/gallery/block.js @@ -194,7 +194,7 @@ class GalleryBlock extends Component { return [ controls, - focus && images.length > 1 && ( + focus && ( {blockDescription}

{ __( 'Gallery Settings' ) }

From 237445b079b6c79dd33281cf02ccc25148240a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?So=CC=88ren=20Wrede?= Date: Wed, 1 Nov 2017 23:28:13 +0100 Subject: [PATCH 2/2] Only show the column slider if there is more then 1 image. --- blocks/library/gallery/block.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/library/gallery/block.js b/blocks/library/gallery/block.js index e149e70d00e08..043d2ce20fb24 100644 --- a/blocks/library/gallery/block.js +++ b/blocks/library/gallery/block.js @@ -198,13 +198,13 @@ class GalleryBlock extends Component { {blockDescription}

{ __( 'Gallery Settings' ) }

- 1 && + /> }