Skip to content

fix: let the sponsor logos reflow on small screens - #194

Merged
magnus-madsen merged 1 commit into
masterfrom
sponsors-responsive
Aug 3, 2026
Merged

fix: let the sponsor logos reflow on small screens#194
magnus-madsen merged 1 commit into
masterfrom
sponsors-responsive

Conversation

@magnus-madsen

Copy link
Copy Markdown
Member

The "Sponsors and Funding" row used bare col, whose equal-width rule has no media query:

.col { flex-basis: 0; flex-grow: 1; max-width: 100% }

flex-grow: 1 with flex-basis: 0 means "split the row evenly" at every viewport width, so the five logos stayed five-across down to 320px, each squeezed to about a fifth of the screen.

This switches the five columns to col-md, which is the same equal-width rule scoped to the md breakpoint:

@media (min-width: 768px) { .col-md { flex-basis: 0; flex-grow: 1; max-width: 100% } }

Below 768px the rule drops out and only the shared width: 100% base remains, so the logos stack one per row — the same behaviour as the Collaborators row just below, which already uses breakpoint-scoped col-md-* classes.

Desktop rendering is unchanged. Verified with npm run build.

🤖 Generated with Claude Code

The sponsor row used bare `col`, whose equal-width rule has no media
query, so the five logos stayed five-across down to 320px and were
squeezed to a fifth of the viewport each.

Use `col-md` instead. It is the same equal-width rule, but scoped to
min-width: 768px, so the desktop layout is unchanged and the logos stack
below that, matching the collaborators row.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@magnus-madsen
magnus-madsen merged commit afc137d into master Aug 3, 2026
2 checks passed
@magnus-madsen
magnus-madsen deleted the sponsors-responsive branch August 3, 2026 19:02
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.

1 participant