Image grid padding calculation issue #2768
Labels
🕹 aspect: interface
Concerns end-users' experience with the software
🛠 goal: fix
Bug fix
🟩 priority: low
Low priority and doesn't need to be rushed
🧱 stack: frontend
Related to the Nuxt frontend
Description
In our "masonry-style" grid on image-only searches, there is a funky bug with calculating the image sizes. Some tall, vertical images are having their heights calculated incorrectly. This results in incorrect spacing and shifting in the hover state of these images:
Observe the misalignment in the left cat:
And the computed height of an "incorrect" image:
Compared to a correct:
This calculation is one of the trickier parts of the frontend code to understand.
Reproduction
The text was updated successfully, but these errors were encountered: