From 2d1b50745a2f219144a917a9d1c4e2d8fbbd5065 Mon Sep 17 00:00:00 2001 From: Matt Ciaccio Date: Tue, 28 Apr 2026 12:10:21 +0200 Subject: [PATCH] style(mobile): responsive tabs + table overflow + hub flex-wrap (Phase A) Adds primitive that swaps the TabsList for a native Select on phone-sized viewports (<640px). DetailLayout now routes its tab strip through it, so every tabbed detail page gets the collapse for free. DataTable wraps the Table in overflow-x-auto so wide column sets scroll horizontally instead of breaking the layout under 768px. Documents-hub row swaps the fixed grid-cols-[auto_1fr_auto_auto_auto_auto] for flex-wrap below sm: so signers / status / dates stack instead of clipping. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/components/documents/documents-hub.tsx | 2 +- src/components/shared/data-table.tsx | 15 +++-- src/components/shared/detail-layout.tsx | 42 ++---------- src/components/shared/responsive-tabs.tsx | 77 ++++++++++++++++++++++ 4 files changed, 92 insertions(+), 44 deletions(-) create mode 100644 src/components/shared/responsive-tabs.tsx diff --git a/src/components/documents/documents-hub.tsx b/src/components/documents/documents-hub.tsx index 9fd0914..76e6f70 100644 --- a/src/components/documents/documents-hub.tsx +++ b/src/components/documents/documents-hub.tsx @@ -142,7 +142,7 @@ export function DocumentsHub({ portSlug }: DocumentsHubProps) { key={doc.id} className="border-b last:border-b-0 transition-colors hover:bg-gradient-brand-soft/40" > -
+