From 88d04253ca112c15ecac6849763af11cd2b3b54c Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Wed, 5 Aug 2026 19:34:09 +0200 Subject: [PATCH 1/2] [fix](trx-frontend-http): move the map's fullscreen and filter toggles into the bar Fullscreen and Hide Filters floated in their own block over the map's top-right corner, separate from the filter bar they sit beside. Put them at the right-hand end of the bar, behind a separator. What made this awkward before is that Hide Filters cannot live inside the thing it hides, so the collapse now applies to the filters alone: the bar keeps its two controls and shrinks to them at the map's right edge, leaving the whole map visible and the way back one click away. Fixes #38 Signed-off-by: Stan Grams --- .../assets/web/generated/map-core.js | 3 +- .../trx-frontend-http/assets/web/index.html | 82 ++++++++++--------- .../trx-frontend-http/assets/web/style.css | 56 ++++++++----- .../frontend/src/map-core.ts | 5 +- .../frontend/tests/spectrum-layout.mjs | 47 ++++++++--- 5 files changed, 119 insertions(+), 74 deletions(-) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/generated/map-core.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/generated/map-core.js index ac60f41c..c5c3820b 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/generated/map-core.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/generated/map-core.js @@ -1335,7 +1335,8 @@ var mapWindow = window; function applyMapOverlayPanelVisibility() { const panel = document.querySelector("#map-stage .map-overlay-panel"); if (!panel) return; - panel.classList.toggle("is-hidden", !mapOverlayPanelVisible); + panel.classList.toggle("filters-hidden", !mapOverlayPanelVisible); + panel.querySelector(".map-overlay-filters")?.classList.toggle("is-hidden", !mapOverlayPanelVisible); } function updateMapOverlayToggleButton() { const btn = mapEl("map-overlay-toggle-btn"); diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html index f17449b4..51aebcbe 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html @@ -1001,48 +1001,50 @@ SPDX-License-Identifier: GPL-2.0-or-later