summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-28 10:56:13 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-28 10:56:13 +0100
commit6fc70d457737507df60c725795c4c736affc95c8 (patch)
tree541c5e6a4f8698a6df9ac632f7656bd973d699b5
parentfe75cd82d6f4f4ecca9c7cd97d9cdfbae646dcff (diff)
web: move hill database loader below the track section
Renamed to 'Load alternative hill database…' and placed after 'Load GPX Track…' — the default database loads automatically, so the button must not sit where it could look like a required first step.
-rw-r--r--crates/wipfel/src/app.rs23
-rw-r--r--dist/wipfel/wipfel_bg.wasmbin523275 -> 523323 bytes
2 files changed, 13 insertions, 10 deletions
diff --git a/crates/wipfel/src/app.rs b/crates/wipfel/src/app.rs
index 71cd168..0c66c35 100644
--- a/crates/wipfel/src/app.rs
+++ b/crates/wipfel/src/app.rs
@@ -1039,16 +1039,6 @@ pub fn app() -> Html {
/>
<p class="status">{ (*status).clone() }</p>
<p class="hint">{ (*db_status).clone() }</p>
- <button class="secondary" onclick={open_db_picker}>
- { "Load hill database…" }
- </button>
- <input
- type="file"
- class="hidden-file"
- accept=".dat,.gz,.gzip,application/gzip"
- ref={db_file_ref}
- onchange={on_db_file_change}
- />
if bitmap.is_some() {
<>
<div class="section">{ "Viewpoint" }</div>
@@ -1098,6 +1088,19 @@ pub fn app() -> Html {
value={*track_width} min={50.0} max={1000.0} step={10.0}
onchange={on_track_width} />
}
+ // deliberately below the track controls: the
+ // default database is loaded automatically, this
+ // is only an optional replacement
+ <button class="secondary" onclick={open_db_picker}>
+ { "Load alternative hill database…" }
+ </button>
+ <input
+ type="file"
+ class="hidden-file"
+ accept=".dat,.gz,.gzip,application/gzip"
+ ref={db_file_ref}
+ onchange={on_db_file_change}
+ />
// last so revealing it on hover cannot shift any
// control above it (the bottom-pinned infofoot
// absorbs the height change)
diff --git a/dist/wipfel/wipfel_bg.wasm b/dist/wipfel/wipfel_bg.wasm
index 0ab8fbc..0bc8c3d 100644
--- a/dist/wipfel/wipfel_bg.wasm
+++ b/dist/wipfel/wipfel_bg.wasm
Binary files differ