diff --git a/packages/block-library/src/gallery/edit.js b/packages/block-library/src/gallery/edit.js index e2a836ae35f6c..5def3f7185165 100644 --- a/packages/block-library/src/gallery/edit.js +++ b/packages/block-library/src/gallery/edit.js @@ -382,12 +382,6 @@ function GalleryEdit( props ) { setAttributes( { imageCrop: ! imageCrop } ); } - function getImageCropHelp( checked ) { - return checked - ? __( 'Thumbnails are cropped to align.' ) - : __( 'Thumbnails are not cropped.' ); - } - function toggleRandomOrder() { setAttributes( { randomOrder: ! randomOrder } ); } @@ -548,50 +542,49 @@ function GalleryEdit( props ) { __next40pxDefaultSize /> ) } + { imageSizeOptions?.length > 0 && ( + + ) } + - { hasLinkTo && ( ) } - { imageSizeOptions?.length > 0 && ( - - ) } { Platform.isWeb && ! imageSizeOptions && hasImageIds && ( diff --git a/packages/block-library/src/gallery/test/index.native.js b/packages/block-library/src/gallery/test/index.native.js index 7ca9ecb63ea2a..4a33365893d67 100644 --- a/packages/block-library/src/gallery/test/index.native.js +++ b/packages/block-library/src/gallery/test/index.native.js @@ -694,7 +694,7 @@ describe( 'Gallery block', () => { await openBlockSettings( screen ); // Disable crop images setting - fireEvent.press( getByText( 'Crop images' ) ); + fireEvent.press( getByText( 'Crop images to fit' ) ); expect( getEditorHtml() ).toMatchSnapshot(); } ); } );