From a8f747984dafa011dd1f5701cccc718d8c2db79c Mon Sep 17 00:00:00 2001 From: Nico Date: Wed, 3 Jun 2026 15:22:54 -0700 Subject: [PATCH] fix: compact selected zone panel --- .../maps/LocationMapBottomSheet.jsx | 12 ++--- .../src/styles/pages/LocationMapManager.css | 44 +++++++++---------- frontend/tests/location-map-manager.spec.ts | 11 +++-- 3 files changed, 33 insertions(+), 34 deletions(-) diff --git a/frontend/src/components/maps/LocationMapBottomSheet.jsx b/frontend/src/components/maps/LocationMapBottomSheet.jsx index 883a3dc..646dad2 100644 --- a/frontend/src/components/maps/LocationMapBottomSheet.jsx +++ b/frontend/src/components/maps/LocationMapBottomSheet.jsx @@ -68,6 +68,7 @@ export default function LocationMapBottomSheet({ : editorTool === "edit" ? "Tap an area to select it." : "Drag and zoom without changing objects."; + const showHeaderItemCount = mode !== "edit" && Boolean(selectedObject); const showEditorControls = mode === "edit" && canManage; const showSelectedObjectForm = Boolean(mode === "edit" && editorTool === "edit" && selectedObject); const changedLayerCount = DISPLAY_CONTROLS.filter(([key]) => filters[key] !== DEFAULT_MAP_FILTERS[key]).length; @@ -109,7 +110,12 @@ export default function LocationMapBottomSheet({