From 504edea8537d7dcef55f4060ef8f09b303bfa985 Mon Sep 17 00:00:00 2001 From: Jin Igarashi Date: Mon, 8 Jan 2024 16:13:33 +0000 Subject: [PATCH 1/2] fix: click the entire header to toggle layer editor and legend panel. --- .../pages/map/layers/LayerEdit.svelte | 90 ++++------------- .../map/plugins/MaplibreLegendControl.svelte | 67 ++----------- .../src/components/util/FloatingPanel.svelte | 96 +++++++++++++++++++ 3 files changed, 120 insertions(+), 133 deletions(-) create mode 100644 sites/geohub/src/components/util/FloatingPanel.svelte diff --git a/sites/geohub/src/components/pages/map/layers/LayerEdit.svelte b/sites/geohub/src/components/pages/map/layers/LayerEdit.svelte index 7eb1e3769b..5e24d0bf19 100644 --- a/sites/geohub/src/components/pages/map/layers/LayerEdit.svelte +++ b/sites/geohub/src/components/pages/map/layers/LayerEdit.svelte @@ -1,5 +1,6 @@ + +
+
+
{ + isExpanded = !isExpanded; + }} + on:keydown={handleEnterKey} + > + {clean(title)} +
+
+ + +
+
+ +
+ + From 0fabc5ed64307831f468aba06372c982997d7006 Mon Sep 17 00:00:00 2001 From: Jin Igarashi Date: Mon, 8 Jan 2024 16:22:48 +0000 Subject: [PATCH 2/2] changeset --- .changeset/gentle-jokes-call.md | 5 +++++ .changeset/small-lamps-end.md | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .changeset/gentle-jokes-call.md create mode 100644 .changeset/small-lamps-end.md diff --git a/.changeset/gentle-jokes-call.md b/.changeset/gentle-jokes-call.md new file mode 100644 index 0000000000..b03160a284 --- /dev/null +++ b/.changeset/gentle-jokes-call.md @@ -0,0 +1,5 @@ +--- +"geohub": patch +--- + +fix: click the entire header to toggle layer editor and legend panel. diff --git a/.changeset/small-lamps-end.md b/.changeset/small-lamps-end.md new file mode 100644 index 0000000000..b03160a284 --- /dev/null +++ b/.changeset/small-lamps-end.md @@ -0,0 +1,5 @@ +--- +"geohub": patch +--- + +fix: click the entire header to toggle layer editor and legend panel.