From 9a5bb78b181a7a30173398ba2ab2336d0cda5452 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Fri, 1 May 2026 20:22:29 +0200 Subject: [PATCH] refactor: make admin panel mobile friendly --- app/admin/auth/page.tsx | 24 +-- app/admin/branding/page.tsx | 20 +- app/admin/layout.tsx | 264 +++++++++++++++++------ app/admin/logs/page.tsx | 44 +++- app/admin/marketplace/[slug]/page.tsx | 70 +++--- app/admin/marketplace/page.tsx | 6 +- app/admin/plugins/page.tsx | 18 +- app/admin/policy/page.tsx | 14 +- app/admin/settings/page.tsx | 24 +-- app/admin/telemetry/page.tsx | 18 +- app/admin/themes/page.tsx | 34 +-- components/settings/settings-section.tsx | 4 +- 12 files changed, 354 insertions(+), 186 deletions(-) diff --git a/app/admin/auth/page.tsx b/app/admin/auth/page.tsx index 426f9bab..0bdfea23 100644 --- a/app/admin/auth/page.tsx +++ b/app/admin/auth/page.tsx @@ -129,8 +129,8 @@ export default function AdminAuthPage() { return (
-
-
+
+

Authentication

OAuth, SSO, and session configuration

@@ -154,7 +154,7 @@ export default function AdminAuthPage() { {/* Auto-setup */}
-
+
@@ -314,7 +314,7 @@ function Text({ label, description, configKey, value, source, onChange, onRevert onChange: (k: string, v: unknown) => void; onRevert: (k: string) => void; placeholder?: string; type?: string; }) { return ( -
+
{label} @@ -322,11 +322,11 @@ function Text({ label, description, configKey, value, source, onChange, onRevert
{description &&

{description}

}
-
+
onChange(configKey, e.target.value)} placeholder={placeholder} - className="h-8 w-64 rounded-md border border-input bg-background px-2.5 text-sm text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring" /> + className="h-8 w-full sm:w-64 rounded-md border border-input bg-background px-2.5 text-sm text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring" /> {source === 'admin' && ( - + )}
@@ -338,7 +338,7 @@ function Toggle({ label, description, configKey, value, source, onChange, onReve onChange: (k: string, v: unknown) => void; onRevert: (k: string) => void; }) { return ( -
+
{label} @@ -346,7 +346,7 @@ function Toggle({ label, description, configKey, value, source, onChange, onReve
{description &&

{description}

}
-
+
+
+ + ); + return (
- {/* Slim webmail nav rail */} -
- {/* Admin Sidebar */} -