Skip to content

Fix banner image rendering on mobile - #259

Merged
lowercasename merged 3 commits into
lowercasename:mainfrom
justlark:mobile-banner
Aug 15, 2026
Merged

Fix banner image rendering on mobile#259
lowercasename merged 3 commits into
lowercasename:mainfrom
justlark:mobile-banner

Conversation

@justlark

Copy link
Copy Markdown
Contributor

Currently, if an event host uploads a banner image, it appears cut off on mobile.

Closes #171

Here's what that looks like today:

gathio-mobile-banner-cut-off

With this PR, it is now fit to the viewport width:

gathio-mobile-banner-fit

Banner images still render the same on desktop:

gathio-desktop-banner-unchanged

justlark and others added 2 commits August 14, 2026 09:52
Without object-fit, an <img> constrained by both width: 100% and
max-height: 300px is stretched vertically once its natural height at
container width exceeds 300px. Crop it instead, matching the previous
background-size: cover behaviour.
@lowercasename

Copy link
Copy Markdown
Owner

Just added a small fix to avoid stretched images on desktop - thank you, this is a great fix!

@lowercasename
lowercasename merged commit 0429325 into lowercasename:main Aug 15, 2026
1 check passed
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.

Banner/cover image doesn't resize on mobile

2 participants