summaryrefslogtreecommitdiff
path: root/crates/gipfel-web/www
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-27 12:29:43 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-27 12:29:43 +0100
commit8431ea2ac57d64a98ac79e302934c3edf9bf3e55 (patch)
tree7d0c105e2b8cc1c9de109df36cc73125a0fb8fd0 /crates/gipfel-web/www
parent82c0414f66f4998c3d61764a1c504e06e62e7ab0 (diff)
web: Find Peak becomes a searchable picker over the close-hill list
Distance-ranked candidates are useless while the initial viewpoint is still rough — the true peak may project far from the click. Mirrors the desktop dialog instead: click opens a search box over pan.close (geographically near hills, dedup/track filtered), name-substring filter, sorted, capped at 300 entries, 'Name (1234 m)' labels, autofocused search, Cancel button. Selection marks the clicked position with the chosen hill, whatever its current projection.
Diffstat (limited to 'crates/gipfel-web/www')
-rw-r--r--crates/gipfel-web/www/style.css39
1 files changed, 38 insertions, 1 deletions
diff --git a/crates/gipfel-web/www/style.css b/crates/gipfel-web/www/style.css
index 9e7e8a0..5122c43 100644
--- a/crates/gipfel-web/www/style.css
+++ b/crates/gipfel-web/www/style.css
@@ -152,13 +152,50 @@ canvas.compass {
.findpeak {
position: absolute;
z-index: 10;
+ width: 280px;
background: #1e1e26;
border: 1px solid #3a3a46;
border-radius: 6px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
+ display: flex;
+ flex-direction: column;
+}
+.fpsearch {
+ padding: 8px;
+ border-bottom: 1px solid #2c2c34;
+}
+.fpsearch input {
+ width: 100%;
+ padding: 5px 8px;
+ background: #24242c;
+ border: 1px solid #3a3a46;
+ border-radius: 4px;
+ color: #e8e8ea;
+ font-size: 13px;
+}
+.fplist {
max-height: 320px;
overflow-y: auto;
- min-width: 220px;
+}
+.fpempty {
+ padding: 8px 10px;
+ font-size: 13px;
+ color: #8a8a94;
+ margin: 0;
+}
+.fpfoot {
+ padding: 6px 8px;
+ border-top: 1px solid #2c2c34;
+ text-align: right;
+}
+.fpcancel {
+ padding: 4px 12px;
+ background: #34343e;
+ color: #e8e8ea;
+ border: 0;
+ border-radius: 4px;
+ font-size: 12px;
+ cursor: pointer;
}
.fphead {
padding: 6px 10px;