From 59422b4c125e5b6ff5487214dc1419a30c2861e8 Mon Sep 17 00:00:00 2001 From: GamerBoss101 Date: Sat, 27 Sep 2025 15:40:50 -0400 Subject: [PATCH] SideBar Style Update --- web/src/app/components/DirectionsSidebar.tsx | 87 +++++++++++--------- 1 file changed, 47 insertions(+), 40 deletions(-) diff --git a/web/src/app/components/DirectionsSidebar.tsx b/web/src/app/components/DirectionsSidebar.tsx index 91ad054..0337492 100644 --- a/web/src/app/components/DirectionsSidebar.tsx +++ b/web/src/app/components/DirectionsSidebar.tsx @@ -255,7 +255,7 @@ export default function DirectionsSidebar({ mapRef, profile = "mapbox/driving" } ref={containerRef} role="region" aria-label="Directions sidebar" - className={`flex flex-col transition-all duration-200 ease-in-out z-40 ${collapsed ? 'w-11 h-11 self-start m-3 rounded-full' : 'w-[340px] h-full bg-[#111214] rounded-tr-lg rounded-br-lg'}`} + className={`relative flex flex-col z-40 ${collapsed ? 'w-11 h-11 self-start m-3 rounded-full overflow-hidden bg-transparent' : 'w-[340px] h-full bg-[#111214] rounded-tr-lg rounded-br-lg'}`} > {/* Toggle */} - {/* Content (hidden when collapsed) */} -
-
- Directions + {/* Content — render only when expanded to avoid any collapsed 'strip' */} + {!collapsed && ( +
+
+ Directions +
+ +
+
+ + setOriginText(e.target.value)} + placeholder="lng,lat" + /> + +
+ +
+ + setDestText(e.target.value)} + placeholder="lng,lat" + /> + +
+ +
+ + +
+ + {pickMode &&
Click on the map to set {pickMode}.
} +
- -
-
- - setOriginText(e.target.value)} - placeholder="lng,lat" - /> - -
- -
- - setDestText(e.target.value)} - placeholder="lng,lat" - /> - -
- -
- - -
- - {pickMode &&
Click on the map to set {pickMode}.
} -
-
+ )}
); }