From 411d5408c1b486bf3afe6ddd6c5da5f59331ec2b Mon Sep 17 00:00:00 2001 From: Maurice Date: Wed, 1 Apr 2026 17:58:57 +0200 Subject: [PATCH] fix: place inspector too narrow at intermediate window widths (#272) Inspector now ignores sidebar widths when window is under 900px, preventing it from being squeezed when sidebars are visually hidden but their width values are still set. --- client/src/pages/TripPlannerPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/pages/TripPlannerPage.tsx b/client/src/pages/TripPlannerPage.tsx index 71725a4..4bd511b 100644 --- a/client/src/pages/TripPlannerPage.tsx +++ b/client/src/pages/TripPlannerPage.tsx @@ -694,8 +694,8 @@ export default function TripPlannerPage(): React.ReactElement | null { } catch {} }} onUpdatePlace={async (placeId, data) => { try { await tripActions.updatePlace(tripId, placeId, data) } catch (err: unknown) { toast.error(err instanceof Error ? err.message : 'Unknown error') } }} - leftWidth={leftCollapsed ? 0 : leftWidth} - rightWidth={rightCollapsed ? 0 : rightWidth} + leftWidth={(isMobile || window.innerWidth < 900) ? 0 : (leftCollapsed ? 0 : leftWidth)} + rightWidth={(isMobile || window.innerWidth < 900) ? 0 : (rightCollapsed ? 0 : rightWidth)} /> )}