Replace profile tab strip with hamburger dropdown on mobile - #16
Open
OpenSourcePatents wants to merge 1 commit into
Open
Replace profile tab strip with hamburger dropdown on mobile#16OpenSourcePatents wants to merge 1 commit into
OpenSourcePatents wants to merge 1 commit into
Conversation
On screens <=760px the eight profile tabs are replaced by a hamburger button labeled with the current section that opens a dropdown menu. Items reuse the existing tab-switch logic so panel redraws still run; the menu closes on selection, outside click, and Escape (which closes the menu before closing the profile). Desktop tabs are unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PVUzD8swLsXgUxprVNc9g2
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Follow-up to #15. On mobile the eight profile tabs (Overview / Bills & Votes / Finances / …) bunched up in the strip, so on screens ≤760px the strip is now replaced by a hamburger button labeled with the current section that opens a dropdown menu of all eight sections. Desktop tabs are unchanged.
Changes
index.html.ptab-mobilehamburger control shown only at ≤760px (the.profile-tabsstrip is hidden there); dropdown items are built from the existing tab buttons so labels stay single-source..ptabclick), so panel-specific redraws (charts, donor network, compare) still run, including the deferred canvas sizing.changelog/2026-08-02-session-1.md— documented the follow-up.Testing
Headless-Chromium checks at 360px: tab strip hidden / hamburger visible, 8 menu items, selection switches panels and updates the button label, active item highlighted, outside-click and Escape behavior verified, no horizontal overflow, no console errors. Full desktop regression (filters, score breakdown, all tabs, Back/Escape) still passes and the hamburger stays hidden at desktop widths.
🤖 Generated with Claude Code
https://claude.ai/code/session_01PVUzD8swLsXgUxprVNc9g2
Generated by Claude Code