summaryrefslogtreecommitdiff
path: root/crates/wipfel/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-27 15:05:39 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-27 15:05:39 +0100
commite2fb0bdabbd13ee806be23a8d1029d362edffe74 (patch)
treebff1fe45db66537a3be680de6ed13a5d860c1c8f /crates/wipfel/src
parent5f8428d01241ed0a3376ecf9b671939a858d2465 (diff)
web: pin Track section to the bottom of the control pane
'Load GPX Track…' and the Track width slider now live in their own Track section below everything else, held at the bottom of the sidebar via margin-top: auto.
Diffstat (limited to 'crates/wipfel/src')
-rw-r--r--crates/wipfel/src/app.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/crates/wipfel/src/app.rs b/crates/wipfel/src/app.rs
index 6e0ef0b..26ca444 100644
--- a/crates/wipfel/src/app.rs
+++ b/crates/wipfel/src/app.rs
@@ -899,12 +899,6 @@ pub fn app() -> Html {
{ "Fit distortion (needs ≥ 4 markers)" }
</label>
<div class="section">{ "Display" }</div>
- <button onclick={open_track_picker}>{ "Load GPX Track…" }</button>
- if !track.is_empty() {
- <SliderItem label="Track width" display={format!("{:.0} m", *track_width)}
- value={*track_width} min={50.0} max={1000.0} step={10.0}
- onchange={on_track_width} />
- }
<label class="row">
<input type="checkbox" checked={*show_hidden} onchange={on_show_hidden} />
{ "Show hidden peaks" }
@@ -932,6 +926,13 @@ pub fn app() -> Html {
<p class="hint dim">
{ "The view is fitted as soon as markers are placed; more markers improve the fit." }
</p>
+ <div class="section track-section">{ "Track" }</div>
+ <button onclick={open_track_picker}>{ "Load GPX Track…" }</button>
+ if !track.is_empty() {
+ <SliderItem label="Track width" display={format!("{:.0} m", *track_width)}
+ value={*track_width} min={50.0} max={1000.0} step={10.0}
+ onchange={on_track_width} />
+ }
</aside>
<main class="main">
<div class="canvaswrap">