From b640b0d2add7de1914f53f7a1bc02677005d4759 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 26 Jan 2026 22:46:26 +0000 Subject: [PATCH] Mobile optimization pass for responsive layouts - TabsList: Add responsive grid columns (grid-cols-2/3 on mobile) - Headers: Stack vertically on mobile with responsive text sizes - Dialogs: Use viewport-relative heights (70-80vh on mobile) - Grids: Add sm: breakpoints for single-column mobile layouts - Tables: Add overflow-x-auto for horizontal scrolling - Buttons: Full-width on mobile with flex-1 sm:flex-none - Select triggers: Full-width on mobile Files updated: 21 component and page files across admin, staff, dashboards, and hub sections. --- client/components/ProfileEditor.tsx | 2 +- client/components/admin/AdminStaffAdmin.tsx | 2 +- client/components/ai/AIChat.tsx | 2 +- client/components/feed/CommentsModal.tsx | 2 +- client/pages/BotPanel.tsx | 4 ++-- client/pages/Dashboard.tsx | 2 +- client/pages/Maintenance.tsx | 2 +- client/pages/ProjectsAdmin.tsx | 2 +- client/pages/StaffAdmin.tsx | 2 +- client/pages/StaffChat.tsx | 2 +- client/pages/StaffDashboard.tsx | 2 +- client/pages/WixCaseStudies.tsx | 2 +- client/pages/admin/AdminAnalytics.tsx | 8 ++++---- client/pages/admin/AdminModeration.tsx | 8 ++++---- client/pages/dashboards/GameForgeDashboard.tsx | 2 +- client/pages/dashboards/LabsDashboard.tsx | 2 +- client/pages/dashboards/NexusDashboard.tsx | 4 ++-- client/pages/hub/ClientInvoices.tsx | 4 ++-- client/pages/profile/MyApplications.tsx | 2 +- client/pages/staff/StaffOKRs.tsx | 18 +++++++++--------- client/pages/staff/StaffTimeTracking.tsx | 14 +++++++------- 21 files changed, 44 insertions(+), 44 deletions(-) diff --git a/client/components/ProfileEditor.tsx b/client/components/ProfileEditor.tsx index 2878f304..9a4f6529 100644 --- a/client/components/ProfileEditor.tsx +++ b/client/components/ProfileEditor.tsx @@ -196,7 +196,7 @@ export function ProfileEditor({ return ( - + Basic Social Skills diff --git a/client/components/admin/AdminStaffAdmin.tsx b/client/components/admin/AdminStaffAdmin.tsx index 1660b37a..65ffd700 100644 --- a/client/components/admin/AdminStaffAdmin.tsx +++ b/client/components/admin/AdminStaffAdmin.tsx @@ -80,7 +80,7 @@ export default function AdminStaffAdmin() { - + Users diff --git a/client/components/ai/AIChat.tsx b/client/components/ai/AIChat.tsx index b80f9c10..325ad0e1 100644 --- a/client/components/ai/AIChat.tsx +++ b/client/components/ai/AIChat.tsx @@ -209,7 +209,7 @@ export const AIChat: React.FC = ({ animate={{ opacity: 1, y: 0, scale: 1 }} exit={{ opacity: 0, y: 20, scale: 0.95 }} transition={{ type: 'spring', damping: 25, stiffness: 300 }} - className="fixed bottom-4 right-4 md:bottom-6 md:right-6 w-[calc(100vw-2rem)] md:w-[450px] h-[600px] max-h-[80vh] bg-background border border-border rounded-2xl shadow-2xl z-50 flex flex-col overflow-hidden" + className="fixed bottom-4 right-4 md:bottom-6 md:right-6 w-[calc(100vw-2rem)] md:w-[450px] h-[70vh] sm:h-[600px] max-h-[80vh] bg-background border border-border rounded-2xl shadow-2xl z-50 flex flex-col overflow-hidden" >
- + diff --git a/client/pages/BotPanel.tsx b/client/pages/BotPanel.tsx index 14c14079..cf2d3438 100644 --- a/client/pages/BotPanel.tsx +++ b/client/pages/BotPanel.tsx @@ -347,7 +347,7 @@ export default function BotPanel() {
)} -
+

Commands

@@ -379,7 +379,7 @@ export default function BotPanel() { -

+

{feedStats?.totalPosts || 0}

Total Posts

diff --git a/client/pages/Dashboard.tsx b/client/pages/Dashboard.tsx index b950a0e2..f2af8556 100644 --- a/client/pages/Dashboard.tsx +++ b/client/pages/Dashboard.tsx @@ -393,7 +393,7 @@ export default function Dashboard() { onValueChange={setActiveTab} className="w-full" > - + Realms Arms diff --git a/client/pages/Maintenance.tsx b/client/pages/Maintenance.tsx index db4a24a0..d9b9503f 100644 --- a/client/pages/Maintenance.tsx +++ b/client/pages/Maintenance.tsx @@ -108,7 +108,7 @@ export default function MaintenancePage() {
-
+
STATUS
diff --git a/client/pages/ProjectsAdmin.tsx b/client/pages/ProjectsAdmin.tsx index bd0ddc00..dbb5c4ac 100644 --- a/client/pages/ProjectsAdmin.tsx +++ b/client/pages/ProjectsAdmin.tsx @@ -158,7 +158,7 @@ export default function ProjectsAdmin() { value={draft.title} onChange={(e) => setDraft({ ...draft, title: e.target.value })} /> -
+
- + diff --git a/client/pages/admin/AdminModeration.tsx b/client/pages/admin/AdminModeration.tsx index f714c65b..638aa086 100644 --- a/client/pages/admin/AdminModeration.tsx +++ b/client/pages/admin/AdminModeration.tsx @@ -264,18 +264,18 @@ export default function AdminModeration() {
{/* Header */} -
+
-

Moderation

-

Content moderation and user management

+

Moderation

+

Content moderation and user management

- + @@ -348,7 +348,7 @@ export default function StaffOKRs() { setNewOkr({ ...newOkr, quarter: parseInt(v) })} @@ -570,7 +570,7 @@ export default function StaffOKRs() { onChange={(e) => setNewKr({ ...newKr, description: e.target.value })} className="bg-slate-700 border-slate-600 text-slate-100" /> -
+
{/* Header */} -
+
-

Time Tracking

-

Track your work hours and projects

+

Time Tracking

+

Track your work hours and projects

-
+
{activeTimer ? ( ) : ( )}