From af40df2c9c889bcb5ac17f5a284be95cf138fa3e Mon Sep 17 00:00:00 2001 From: dwindown Date: Thu, 25 Dec 2025 08:57:08 +0700 Subject: [PATCH] Fix responsiveness in remaining admin pages AdminMembers.tsx: - Wrap table in overflow-x-auto div for horizontal scrolling - Add whitespace-nowrap to TableHead cells AdminConsulting.tsx: - Wrap both tables (upcoming and past) in overflow-x-auto div - Add whitespace-nowrap to all TableHead cells - Change stats grid from grid-cols-1 md:grid-cols-4 to grid-cols-2 md:grid-cols-4 for better mobile layout AdminEvents.tsx: - Wrap both tables (events and availability) in overflow-x-auto div - Add whitespace-nowrap to all TableHead cells - Change dialog form grids from grid-cols-2 to grid-cols-1 md:grid-cols-2 CurriculumEditor.tsx: - Make curriculum header responsive (flex-col sm:flex-row) - Make module card headers responsive (stack title and buttons on mobile) - Make lesson items responsive (stack title and buttons on mobile) All admin pages are now fully responsive with proper horizontal scrolling for tables on mobile and stacked layouts for forms and button groups. --- src/components/admin/CurriculumEditor.tsx | 6 +-- src/pages/admin/AdminConsulting.tsx | 50 ++++++++++++----------- src/pages/admin/AdminEvents.tsx | 48 ++++++++++++---------- src/pages/admin/AdminMembers.tsx | 22 +++++----- 4 files changed, 68 insertions(+), 58 deletions(-) diff --git a/src/components/admin/CurriculumEditor.tsx b/src/components/admin/CurriculumEditor.tsx index e5a6bcd..e2b568f 100644 --- a/src/components/admin/CurriculumEditor.tsx +++ b/src/components/admin/CurriculumEditor.tsx @@ -279,7 +279,7 @@ export function CurriculumEditor({ productId }: CurriculumEditorProps) { return (
-
+

Curriculum

- - - - Judul - Tipe - Mulai - Status - Aksi - - +
+
+ + + Judul + Tipe + Mulai + Status + Aksi + + {events.map((event) => ( @@ -275,6 +276,7 @@ export default function AdminEvents() { )}
+
@@ -289,16 +291,17 @@ export default function AdminEvents() { - - - - Tipe - Mulai - Selesai - Catatan - Aksi - - +
+
+ + + Tipe + Mulai + Selesai + Catatan + Aksi + + {blocks.map((block) => ( @@ -329,6 +332,7 @@ export default function AdminEvents() { )}
+
@@ -371,7 +375,7 @@ export default function AdminEvents() {
-
+
-
+
- - - - Email - Nama - Role - Bergabung - Aksi - - +
+
+ + + Email + Nama + Role + Bergabung + Aksi + + {members.map((member) => ( @@ -151,6 +152,7 @@ export default function AdminMembers() { )}
+