From bb9c0c9b686a4adc30139beb121f7856798bf7cd Mon Sep 17 00:00:00 2001 From: Salman Abuhaimed Date: Tue, 31 Mar 2026 05:44:59 +0300 Subject: [PATCH 1/3] fix: day details on mobile not showing --- client/src/pages/TripPlannerPage.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/client/src/pages/TripPlannerPage.tsx b/client/src/pages/TripPlannerPage.tsx index 7636a86..5e48167 100644 --- a/client/src/pages/TripPlannerPage.tsx +++ b/client/src/pages/TripPlannerPage.tsx @@ -98,6 +98,14 @@ export default function TripPlannerPage(): React.ReactElement | null { const [mobileSidebarOpen, setMobileSidebarOpen] = useState<'left' | 'right' | null>(null) const [deletePlaceId, setDeletePlaceId] = useState(null) + const [isMobile, setIsMobile] = useState(() => window.innerWidth < 768) + useEffect(() => { + const mq = window.matchMedia('(max-width: 767px)') + const handler = (e: MediaQueryListEvent) => setIsMobile(e.matches) + mq.addEventListener('change', handler) + return () => mq.removeEventListener('change', handler) + }, []) + // Load trip + files (needed for place inspector file section) useEffect(() => { if (tripId) { @@ -544,8 +552,8 @@ export default function TripPlannerPage(): React.ReactElement | null { lng={geoPlace?.lng} onClose={() => setShowDayDetail(null)} onAccommodationChange={loadAccommodations} - leftWidth={leftCollapsed ? 0 : leftWidth} - rightWidth={rightCollapsed ? 0 : rightWidth} + leftWidth={isMobile ? 0 : (leftCollapsed ? 0 : leftWidth)} + rightWidth={isMobile ? 0 : (rightCollapsed ? 0 : rightWidth)} /> ) })()} From 96b6d7d81f16932a83269e4225616366e332b035 Mon Sep 17 00:00:00 2001 From: Salman Abuhaimed Date: Tue, 31 Mar 2026 06:01:41 +0300 Subject: [PATCH 2/3] fix: note modal hidden behind mobile sidebar due to z-index --- client/src/components/Planner/DayPlanSidebar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/Planner/DayPlanSidebar.tsx b/client/src/components/Planner/DayPlanSidebar.tsx index ce0ebec..4641259 100644 --- a/client/src/components/Planner/DayPlanSidebar.tsx +++ b/client/src/components/Planner/DayPlanSidebar.tsx @@ -1406,7 +1406,7 @@ export default function DayPlanSidebar({ {/* Notiz-Popup-Modal — über Portal gerendert, um den backdropFilter-Stapelkontext zu umgehen */} {Object.entries(noteUi).map(([dayId, ui]) => ui && ReactDOM.createPortal(
cancelNote(Number(dayId))}> From 299e26bebe14d020037d759df192a77c45d21393 Mon Sep 17 00:00:00 2001 From: Salman Abuhaimed Date: Tue, 31 Mar 2026 06:13:31 +0300 Subject: [PATCH 3/3] make day plan side bar icons more readable --- .../src/components/Planner/DayPlanSidebar.tsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/client/src/components/Planner/DayPlanSidebar.tsx b/client/src/components/Planner/DayPlanSidebar.tsx index 4641259..99081d9 100644 --- a/client/src/components/Planner/DayPlanSidebar.tsx +++ b/client/src/components/Planner/DayPlanSidebar.tsx @@ -810,14 +810,14 @@ export default function DayPlanSidebar({ /> ) : (
- + {day.title || t('dayplan.dayN', { n: index + 1 })} {(() => { const dayAccs = accommodations.filter(a => day.id >= a.start_day_id && day.id <= a.end_day_id) @@ -865,17 +865,17 @@ export default function DayPlanSidebar({
@@ -1423,8 +1423,8 @@ export default function DayPlanSidebar({ {NOTE_ICONS.map(({ id, Icon }) => ( ))}
@@ -1446,7 +1446,7 @@ export default function DayPlanSidebar({ placeholder={t('dayplan.noteSubtitle')} style={{ fontSize: 12, border: '1px solid var(--border-primary)', borderRadius: 8, padding: '7px 10px', fontFamily: 'inherit', outline: 'none', width: '100%', boxSizing: 'border-box', color: 'var(--text-primary)', resize: 'none', lineHeight: 1.4 }} /> -
= 140 ? '#d97706' : 'var(--text-faint)', marginTop: -2 }}>{ui.time?.length || 0}/150
+
= 140 ? '#d97706' : 'var(--text-faint)', marginTop: -2 }}>{ui.time?.length || 0}/150