Skip to content

Gallery Block Spacing does not change on mobile Device Preview in Responsive editing mode #79968

Closed

Description

@andreawetzel

Description

In testing the Responsive Styling for #75121 I noticed that when Styling the Gallery block, I have the option to change the block spacing on the Mobile device viewport while in Responsive editing mode, however the block spacing changes are not applied to either the editor or published front end page.

Step-by-step reproduction instructions

Testing with playground link from https://make.wordpress.org/test/2026/07/03/call-for-testing-responsive-styling/

  1. Add a page
  2. Add a gallery block
  3. Enable Responsive editing from the device picker UI
  4. Change to the Mobile viewport
  5. Increase the block spacing with the mobile viewport active

Screenshots, screen recording, code snippet

Mobile screenshot

editor view of mobile responsive styles for gallery block

Desktop screenshot

editor view of desktop responsive styles for gallery block

Environment info

WordPress 7.0 running Twenty Twenty-Five theme
Gutenberg Version 23.5.0
Mac / Chrome

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Activity

  1. andreawetzel commented on Jul 7, 2026

    @andreawetzel
    ContributorAuthor

    This is part of this 7.1 tracking issue #77817

  2. added
    [Block] GalleryAffects the Gallery Block - used to display groups of images
    [Feature] LayoutLayout block support, its UI controls, and style output.
    on Jul 8, 2026
  3. t-hamano commented on Jul 8, 2026

    @t-hamano
    Contributor

    Related to https://github.com/WordPress/gutenberg/pull/78543/changes

    @tellthemachines @talldan, I believe there are two factors involved in the problem reported here. What are your thoughts?

  4. tellthemachines commented on Jul 8, 2026

    @tellthemachines
    Contributor

    Hmm yeah the custom implementation is behind this for sure; that's probably a consequence of the legacy flex layout Gallery uses. Let me see how it might be fixed!

  5. moved this from 📥 Todo to 📋 Iteration/Tracking Issues in WordPress 7.1 Editor Taskson Jul 8, 2026
  6. moved this from 📋 Iteration/Tracking Issues to ✅ Done in WordPress 7.1 Editor Taskson Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

[Block] GalleryAffects the Gallery Block - used to display groups of images[Feature] LayoutLayout block support, its UI controls, and style output.[Feature] Style StatesRelated to block style states (currently viewport and pseudo-states)[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions