[wp-trac] [WordPress Trac] #58732: WordPress Gallery Block: Column Count Issue Results in Unbalanced Item Widths

WordPress Trac noreply at wordpress.org
Thu Jul 6 13:13:40 UTC 2023


#58732: WordPress Gallery Block: Column Count Issue Results in Unbalanced Item
Widths
-------------------------+-----------------------------
 Reporter:  sarath.ar    |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 == Enhancement
 === Description
 The WordPress gallery block is currently experiencing an issue when users
 select a specific column count. The problem arises when attempting to
 achieve a balanced layout, as the items within the gallery block are not
 receiving a common width. This results in inconsistent and unbalanced item
 widths. Currently, there is an option to keep all the items in the same
 width.

 === Environment
 - WordPress: 6.3-beta3-56143
 - PHP: 7.4.33
 - Server: TasteWP-S1 Official/3.0.0
 - Database: mysqli (Server: 8.0.32-0ubuntu0.20.04.2 / Client: mysqlnd
 7.4.33)
 - Browser: Chrome 112.0.0.0 (macOS)
 - Theme: Twenty Twenty-Three 1.1
 - MU-Plugins: None activated
 - Plugins:
   * WordPress Beta Tester 3.5.0

 === Steps to Reproduce
 1. Add a gallery block
 2. Add a few images to the gallery
 3. Change the number of columns option

 === Expected Results
 1.  Same column size for all gallery items

 === Actual Results
 1.  If there are 6 gallery items and the column count is 4 the last 2
 items are showing as 2 columns instead of 4.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58732>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list