From 17ab0f25f7b1ab4f411db5e0f3f0c26a2912854e Mon Sep 17 00:00:00 2001 From: Vadim Nicolai Date: Sun, 24 Mar 2019 19:45:17 +0200 Subject: [PATCH] No allignment gallery className fix. --- packages/block-library/src/gallery/edit.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/gallery/edit.js b/packages/block-library/src/gallery/edit.js index ade7ba978264ba..774306aedc2c3e 100644 --- a/packages/block-library/src/gallery/edit.js +++ b/packages/block-library/src/gallery/edit.js @@ -271,10 +271,12 @@ class GalleryEdit extends Component { className={ classnames( className, { - [ `align${ align }` ]: align, [ `columns-${ columns }` ]: columns, 'is-cropped': imageCrop, - } + }, + align ? { + [ `align${ align }` ]: align, + } : null ) } > { dropZone }