diff --git a/src/components/access/AdminAccessGates.tsx b/src/components/access/AdminAccessGates.tsx index 561954d..1b84d51 100644 --- a/src/components/access/AdminAccessGates.tsx +++ b/src/components/access/AdminAccessGates.tsx @@ -14,7 +14,7 @@ export function FullPanelOnly({ children, fallback = null }: GateProps) { return <>{children} } -/** Renders children only for Super Admin (e.g. team email invites). */ +/** Renders children only for Admin / Super Admin (e.g. team email invites). */ export function SuperAdminOnly({ children, fallback = null }: GateProps) { const { canInviteTeam } = useAdminAccess() if (!canInviteTeam) return <>{fallback} diff --git a/src/components/admin/AdminTableContainer.tsx b/src/components/admin/AdminTableContainer.tsx index 98d0dc8..8fd7c83 100644 --- a/src/components/admin/AdminTableContainer.tsx +++ b/src/components/admin/AdminTableContainer.tsx @@ -13,8 +13,16 @@ export function AdminTableContainer({ minWidth, }: AdminTableContainerProps) { return ( -
-
+
+
{children}
diff --git a/src/components/filters/AdminFiltersPanel.tsx b/src/components/filters/AdminFiltersPanel.tsx index 7174e9f..392124c 100644 --- a/src/components/filters/AdminFiltersPanel.tsx +++ b/src/components/filters/AdminFiltersPanel.tsx @@ -47,7 +47,9 @@ export function AdminFiltersPanel({ )} >
- {search ?
{search}
: null} + {search ? ( +
{search}
+ ) : null} {inlineActions ? (
{actions}
) : ( diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index 37110f9..2a9c831 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -32,7 +32,7 @@ const DialogContent = React.forwardRef< - {steps.map((step, index) => { - const stepNumber = index + 1; - const isCurrent = stepNumber === currentStep; +
+ {/* Compact mobile summary */} +
+

+ {currentLabel} +

+

+ Step {safeCurrent} of {steps.length} +

+
- return ( -
- {/* Connector Line - floats between circles with gap on both sides */} - {index < steps.length - 1 && ( -
- )} +
+ {steps.map((step, index) => { + const stepNumber = index + 1; + const isCurrent = stepNumber === safeCurrent; + const isComplete = stepNumber < safeCurrent; - {/* Circle */} + return (
- {stepNumber} -
+ {index < steps.length - 1 ? ( +
+ ) : null} - {/* Label */} - - {step} - -
- ); - })} +
+ {stepNumber} +
+ + +
+ ); + })} +
); } diff --git a/src/components/ui/table.tsx b/src/components/ui/table.tsx index 32ed567..533918a 100644 --- a/src/components/ui/table.tsx +++ b/src/components/ui/table.tsx @@ -12,7 +12,7 @@ export const Table = React.forwardRef( ) if (noWrapper) return table - return
{table}
+ return
{table}
}, ) Table.displayName = "Table" @@ -53,7 +53,7 @@ export const TableHead = React.forwardRef (
), @@ -62,7 +62,7 @@ TableHead.displayName = "TableHead" export const TableCell = React.forwardRef>( ({ className, ...props }, ref) => ( - + ), ) TableCell.displayName = "TableCell" diff --git a/src/layouts/AppLayout.tsx b/src/layouts/AppLayout.tsx index 2814c22..1189891 100644 --- a/src/layouts/AppLayout.tsx +++ b/src/layouts/AppLayout.tsx @@ -38,6 +38,15 @@ export function AppLayout() { setSidebarOpen(false) }, []) + useEffect(() => { + if (!sidebarOpen) return + const previous = document.body.style.overflow + document.body.style.overflow = "hidden" + return () => { + document.body.style.overflow = previous + } + }, [sidebarOpen]) + useEffect(() => { const container = mainRef.current if (!container) return @@ -100,8 +109,8 @@ export function AppLayout() { > -