Gallery Block: Stop reflows from breaking custom alignment layouts. #17586
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #17584
Description
A seemingly unnecessary flex property on the gallery block's figure element when it had left, right, or center alignment set, was causing issues when the alignment was changed between the 3 modes.
Something with how the flex space allocation calculations work was causing the breakage in #17584.
This PR fixes that by removing the property.
How has this been tested?
It was verified that the issue described is no longer happening and that the gallery block's alignment works as expected both in the editor and published site.
Types of Changes
Bug Fix: Switching between different alignment modes for the gallery block no longer breaks its layout.
Checklist: