From 3d899c07fe62b2532db42be31a236ff9d5db535b Mon Sep 17 00:00:00 2001 From: poyrazavsever Date: Tue, 9 Jun 2026 16:01:38 +0300 Subject: [PATCH] refactor: improve mobile responsiveness and layout consistency across dashboard views by adding horizontal scrolling and unifying Sidebar components. --- app/(dashboard)/calendar/calendar-client.tsx | 18 ++++--- app/(dashboard)/chat/page.tsx | 4 +- app/(dashboard)/clients/clients-client.tsx | 32 ++++++------ app/(dashboard)/documents/page.tsx | 28 ++++++----- app/(dashboard)/finance/finance-client.tsx | 53 ++++++++++++++------ app/(dashboard)/journal/journal-client.tsx | 22 ++++---- app/(dashboard)/projects/projects-client.tsx | 30 +++++------ app/(dashboard)/settings/page.tsx | 4 +- app/(dashboard)/tasks/tasks-client.tsx | 22 ++++---- app/(dashboard)/time/page.tsx | 5 +- components/layout/dashboard-shell.tsx | 29 +++++------ components/layout/portal-shell.tsx | 32 ++++++------ 12 files changed, 161 insertions(+), 118 deletions(-) diff --git a/app/(dashboard)/calendar/calendar-client.tsx b/app/(dashboard)/calendar/calendar-client.tsx index 432fb94..df5a60b 100644 --- a/app/(dashboard)/calendar/calendar-client.tsx +++ b/app/(dashboard)/calendar/calendar-client.tsx @@ -133,14 +133,16 @@ export function CalendarClient({ events, clients, projects, tasks }: CalendarCli -
- {["Pzt", "Sal", "Çar", "Per", "Cum", "Cmt", "Paz"].map((day) => ( -
- {day} +
+
+
+ {["Pzt", "Sal", "Çar", "Per", "Cum", "Cmt", "Paz"].map((day) => ( +
+ {day} +
+ ))}
- ))} -
-
+
{days.map((day) => { const dayEvents = eventsByDay.get(day.key) || []; const isSelected = selectedDate === day.key; @@ -173,6 +175,8 @@ export function CalendarClient({ events, clients, projects, tasks }: CalendarCli ); })} +
+
diff --git a/app/(dashboard)/chat/page.tsx b/app/(dashboard)/chat/page.tsx index 49e66ec..19708cf 100644 --- a/app/(dashboard)/chat/page.tsx +++ b/app/(dashboard)/chat/page.tsx @@ -242,7 +242,7 @@ export default function AIChatPage() { className={`flex ${message.role === "user" ? "justify-end" : "justify-start"}`} >
-
+