Skip to content

Conversation

@jbriones1
Copy link
Collaborator

Issue:
On smaller screens, when the gallery images wrapped to a single column, the images would become left-aligned.

Root cause:
The size of the images were hard coded to be 17.5rem. This meant that if the gallery wrapped the images would be aligned to the left.

Solution:
Changed the gallery to use grid instead. The images will now attempt to grow to fill the column, unless the column has 17.5rem or higher of horizontal space. At that point, a new column will be made and the row will accommodate another image.

Issue:
On smaller screens, when the gallery images wrapped to a single column,
the images would become left-aligned.

Root cause:
The size of the images were hard coded to be 17.5rem. This meant that if
the gallery wrapped the images would be aligned to the left.

Solution:
Changed the gallery to use grid instead. The images will now attempt to
grow to fill the column, unless the column has 17.5rem or higher of
horizontal space. At that point, a new column will be made and the
row will accommodate another image.
@jbriones1 jbriones1 merged commit 426a706 into main Sep 18, 2025
@jbriones1 jbriones1 deleted the fix_fall-hacks-gallery branch September 18, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants