style(mobile): responsive tabs + table overflow + hub flex-wrap (Phase A)
Adds <ResponsiveTabs> 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) <noreply@anthropic.com>
This commit is contained in:
@@ -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"
|
||||
>
|
||||
<div className="grid grid-cols-[auto_1fr_auto_auto_auto_auto] items-center gap-3 px-4 py-3 text-sm">
|
||||
<div className="flex flex-wrap items-center gap-x-3 gap-y-1 px-4 py-3 text-sm sm:grid sm:grid-cols-[auto_1fr_auto_auto_auto_auto] sm:gap-3">
|
||||
<button
|
||||
type="button"
|
||||
aria-label={expanded ? 'Collapse signers' : 'Expand signers'}
|
||||
|
||||
Reference in New Issue
Block a user