feat(portal): make app mobile responsive#24
Merged
Conversation
- Table: reflow to stacked label/value cards on phones instead of horizontal scroll, so all data is visible without sideways scrolling - PartnerCard / creator card stats keep 2 columns on mobile (don't collapse short stat pairs to a single column) - Webhook endpoint card: stack header vertically on mobile, wrap long URLs, and let action buttons wrap so they no longer overlap the URL Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2ee1105 to
b370738
Compare
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.
Makes the portal (app.openpartner.dev) mobile responsive. It was previously desktop-only — pure inline CSS-in-JS, a fixed 248px sidebar, and no media queries anywhere.
Changes
Foundation
useMediaQuery/useIsMobilehook (768px breakpoint) — how components branch inline styles by viewport, since there are no stylesheets to hang@mediaon.Navigation → mobile drawer
ShellinApp.tsxandCreatorShell) collapse the fixed sidebar into a sticky hamburger top bar + slide-in drawer with a tap-to-dismiss backdrop. Sidebar takes avariant: 'sidebar' | 'drawer'prop; the drawer auto-closes on navigation. Desktop is unchanged.Shared primitives (
ui.tsx)Page: responsive padding, stacking header, smaller title on mobile.Table: reflows into stacked label/value cards on phones (first column as the row title) instead of horizontal scrolling — so all data is visible without scrolling sideways. Tablet/desktop keep the real table with a horizontal-scroll fallback.Grid sweep
op-grid-collapseclass (global.css,!importantmedia query) collapses ~20 hardcoded multi-column form grids to one column ≤768px. Short stat pairs (PartnerCard, creator cards) intentionally stay 2-up.Device-testing fixes
Verification
tsc --noEmitandvite buildboth pass.🤖 Generated with Claude Code