From ed4be96706d32edba10378201ac001b33b4c4e6b Mon Sep 17 00:00:00 2001 From: Linus Rath Date: Mon, 16 Mar 2026 11:02:34 +0100 Subject: [PATCH] fix: update sidebar border styling for consistency across pages --- app/[locale]/calendar/page.tsx | 83 ++++++++++++------------ app/[locale]/contacts/page.tsx | 2 +- app/[locale]/files/page.tsx | 2 +- app/[locale]/page.tsx | 2 +- app/[locale]/settings/page.tsx | 2 +- components/calendar/calendar-toolbar.tsx | 24 +++---- 6 files changed, 59 insertions(+), 56 deletions(-) diff --git a/app/[locale]/calendar/page.tsx b/app/[locale]/calendar/page.tsx index 5ded7c39..ac8c2e61 100644 --- a/app/[locale]/calendar/page.tsx +++ b/app/[locale]/calendar/page.tsx @@ -697,7 +697,7 @@ export default function CalendarPage() {
{/* Left Navigation Rail */} {!isMobile && ( -
+
)} + {/* Sidebar - full height */} + {!isMobile && ( + <> +
+ + { + updateCalendar(client, calendarId, { color }); + } : undefined} + onSubscribe={() => setShowSubscriptionModal(true)} + client={client} + /> +
+ { dragStartWidth.current = calSidebarWidth; setIsResizing(true); }} + onResize={(delta) => setCalSidebarWidth(Math.max(180, Math.min(400, dragStartWidth.current + delta)))} + onResizeEnd={() => { + setIsResizing(false); + localStorage.setItem("calendar-sidebar-width", String(calSidebarWidth)); + }} + onDoubleClick={() => { setCalSidebarWidth(256); localStorage.setItem("calendar-sidebar-width", "256"); }} + /> + + )} +
- {!isMobile && ( - <> -
- - { - updateCalendar(client, calendarId, { color }); - } : undefined} - onSubscribe={() => setShowSubscriptionModal(true)} - client={client} - /> -
- { dragStartWidth.current = calSidebarWidth; setIsResizing(true); }} - onResize={(delta) => setCalSidebarWidth(Math.max(180, Math.min(400, dragStartWidth.current + delta)))} - onResizeEnd={() => { - setIsResizing(false); - localStorage.setItem("calendar-sidebar-width", String(calSidebarWidth)); - }} - onDoubleClick={() => { setCalSidebarWidth(256); localStorage.setItem("calendar-sidebar-width", "256"); }} - /> - - )} - {renderView()} {/* Desktop event panel */} diff --git a/app/[locale]/contacts/page.tsx b/app/[locale]/contacts/page.tsx index 9c7f16cd..df6f08e7 100644 --- a/app/[locale]/contacts/page.tsx +++ b/app/[locale]/contacts/page.tsx @@ -437,7 +437,7 @@ export default function ContactsPage() { return (
{!isMobile && ( -
+
{!isMobile && ( -
+
{/* Desktop Navigation Rail */} {!isMobile && !isTablet && ( -
+
{/* Navigation Rail */} -
+
-
- - - {getDateLabel()} - - -
+ {isMobile && ( +
+ + + {getDateLabel()} + + +
+ )}