From 55f6598569cb34f1777c69e126fde02160a23ce0 Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Mon, 12 Oct 2026 20:17:21 -0400 Subject: [PATCH] fix(mobile): resolve horizontal overflow and touch-only affordances Mobile audit (390x844) found overflow on 6 routes; all now clean. - Tabs: TabsList is inline-flex and widened the page when several tabs were present (roster doc 639px, helpdesk 510px). It now scrolls (max-w-full + overflow-x-auto); TabsContent gets min-w-0 and the roster Tabs min-w-0 so the org tree's own scroller can clip instead of the page growing - Item: ItemHeader/ItemFooter had flex-basis 100% with min-width auto, so a long title forced the card wider instead of shrinking. Shared min-w-0 - ResourceCard: the description rendered twice (once inside ItemContent, once as ItemDescription) and both fought for one flex line, crushing the content column to 27px. Single description, full-width rows, truncating title (min-w-0 + items-stretch so nowrap spans can clip), shrink-0 badges - awards/design: stripe row wraps instead of exceeding the viewport - leaderboards: flappy table and the shared StandingsTable scroll horizontally rather than widening the page - blackjack: explicit grid-cols-1 (minmax(0,1fr)) so the arena's implicit track cannot outgrow the viewport - campaigns: card readout was revealed only on hover, unreachable on touch; now always visible on coarse pointers and hover-revealed only on pointer-fine --- src/components/awards/ribbonDesign/parts.tsx | 2 +- .../frontend/intelligence/CampaignCard.tsx | 4 +++- .../frontend/logistics/ResourceCard.tsx | 19 +++++++++---------- .../frontend/minigames/StandingsTable.tsx | 6 ++++-- .../minigames/blackjack/BlackjackArena.tsx | 2 +- .../minigames/flappy/FlappyLeaderboard.tsx | 4 +++- src/components/frontend/roster/RosterView.tsx | 2 +- src/components/ui/item.tsx | 6 ++++-- src/components/ui/tabs.tsx | 6 ++++-- 9 files changed, 30 insertions(+), 21 deletions(-) diff --git a/src/components/awards/ribbonDesign/parts.tsx b/src/components/awards/ribbonDesign/parts.tsx index 3f42507f..36f76861 100644 --- a/src/components/awards/ribbonDesign/parts.tsx +++ b/src/components/awards/ribbonDesign/parts.tsx @@ -87,7 +87,7 @@ export function StripeEditor({ {stripes.map((stripe, idx) => ( -
+
{isSmall ? ( -