fix(ui): wrap member section nav 2-up on mobile (#1331)#1335
Merged
Conversation
The sticky section nav (Projects / Papers / Videos / Talks) wrapped unevenly on phones, orphaning "Talks" onto its own line. Pin each link to ~half-row width below 576px so the four sections wrap a clean 2-up grid. Reusing the existing flex-wrap + justify-content:center also centers a lone last item for members with only three sections. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Fixes #1331. On phones, the sticky
member-section-nav-list(Projects / Papers / Videos / Talks) wrapped unevenly, orphaning Talks onto its own line.This pins each link to ~half-row width below the
576pxphone breakpoint, so the four sections wrap a clean 2-up grid:Why this approach
flex-wrap+justify-content: centermeans a member with only three sections gets the lone last link centered on row 2 instead of left-orphaned.576pxmatches this file's existing "phone" breakpoint (the mobile grid caps use the same).Changes
website/static/website/css/member.css: one@media (max-width: 576px)block (CSS only — no template/JS change).Testing
CSS-only layout change; no automated tests apply. Verified the wrap math (
2 × calc(50% - gap) + gap = 100% - gap, no overflow). No before/after screenshot per maintainer request.🤖 Generated with Claude Code