Skip to content

Conversation

@sea-kelp
Copy link
Collaborator

@sea-kelp sea-kelp commented Apr 19, 2025

Description of Changes

Fix officer face aspect ratio on the browse page.

The officer face thumbnail currently inherits the column width (col-md-4 col-12) and has a set height of 300. This causes images that aren't this particular size to become warped.

This change adds the object-fit: cover CSS property to the officer-face class, which preserves the thumbnail aspect ratio.
https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit

Notes for Deployment

None!

Screenshots (if appropriate)

Before:
1

After:
2

Testing instructions

Checks

  • I have rebased my changes on main

  • just lint passes

  • just test passes

Copy link
Collaborator

@AetherUnbound AetherUnbound left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THANK YOU for fixing this!!

@sea-kelp sea-kelp merged commit f02f494 into main May 4, 2025
2 checks passed
@sea-kelp sea-kelp deleted the fix/officer-face-aspect-ratio branch May 4, 2025 20:01
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Orca Collective Task Tracker May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants