Commit 426a706
authored
Fix(Fall Hacks 2025): Gallery not centered on small screens (#206)
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.1 parent 585806d commit 426a706
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments