Gallery: Allow gallery to have more columns than total images #55231
Labels
[Block] Gallery
Affects the Gallery Block - used to display groups of images
[Type] Enhancement
A suggestion for improvement.
Right now I'm trying to lay out a series of galleries with between two and four images, like this:
I'd like all the images to be the same size since this is listing out candidates for local elections and we don't want to show favoritism by having one candidate's photo appear larger than the other.
However, I can't set the column value to 4 for all the galleries since the gallery block does not let you set the number of columns to a value larger than the number of images:
1
Currently, it is possible to duplicate a gallery block with four images, remove two of them and end up with markup/block metadata that says there are four columns2:
If the input was not restricted then the only change needed to support this would be removing
flex-grow: 1;
from the stock gallery block CSS.Footnotes
These are not the actual candidates in the election. ↩
Made a separate issue about this: Gallery block markup/metadata is not updated when images are removed #55232 ↩
The text was updated successfully, but these errors were encountered: