Gallery block: explore options for indicating context to the nested image blocks #33531
Labels
[Block] Gallery
Affects the Gallery Block - used to display groups of images
[Type] Enhancement
A suggestion for improvement.
With the Gallery refactor PR the Image block modifies its behaviour slightly based on a context vars that is passed down from the Gallery block -
allowResize
. This is set to false for the Gallery blocks, which disables the image resize option as most resizing of images breaks the gallery layout with the current flex layout.There may be a better way to handle this via the data module as the post block does when a child of the query block, or to at least indicate that the context var is a constant that isn't serialised as is normally the case with context.
It also may be possible to switch the gallery to a more robust css grid layout that can cope with individual image resizing in which case the context value can be removed.
The text was updated successfully, but these errors were encountered: