From 04d282421c3d2a79c7bfafa896b3726c13675b0b Mon Sep 17 00:00:00 2001 From: Karen Attfield Date: Fri, 3 Jan 2025 12:31:02 +0000 Subject: [PATCH] Replacing the figure with the div, to prevent style issues with the enclosing extra container --- .../tiled-gallery/gallery-image/edit.js | 68 +++++++++---------- 1 file changed, 32 insertions(+), 36 deletions(-) diff --git a/projects/plugins/jetpack/extensions/blocks/tiled-gallery/gallery-image/edit.js b/projects/plugins/jetpack/extensions/blocks/tiled-gallery/gallery-image/edit.js index 723e60e46f1e7..84ed896b32f2f 100644 --- a/projects/plugins/jetpack/extensions/blocks/tiled-gallery/gallery-image/edit.js +++ b/projects/plugins/jetpack/extensions/blocks/tiled-gallery/gallery-image/edit.js @@ -111,52 +111,48 @@ class GalleryImageEdit extends Component { return ( // The image itself is not meant to be interactive, but the enclosing element should be.
-
- { showMovers && ( -
-
- ) } -
+ { showMovers && ( +
- { /* Keep the HTML structure, but ensure there is no navigation from edit */ } - { href ? : img } -
+ ) } +
+
+ { /* Keep the HTML structure, but ensure there is no navigation from edit */ } + { href ? : img }
); }