diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 15:05:39 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 15:05:39 +0100 |
| commit | e2fb0bdabbd13ee806be23a8d1029d362edffe74 (patch) | |
| tree | bff1fe45db66537a3be680de6ed13a5d860c1c8f | |
| parent | 5f8428d01241ed0a3376ecf9b671939a858d2465 (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.
| -rw-r--r-- | crates/wipfel/src/app.rs | 13 | ||||
| -rw-r--r-- | crates/wipfel/www/style.css | 4 |
2 files changed, 11 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"> diff --git a/crates/wipfel/www/style.css b/crates/wipfel/www/style.css index 7170199..7ef3284 100644 --- a/crates/wipfel/www/style.css +++ b/crates/wipfel/www/style.css @@ -114,6 +114,10 @@ body { .hidden-file { display: none; } +/* pin the optional track section to the bottom of the control pane */ +.track-section { + margin-top: auto; +} .main { flex: 1; min-width: 0; |
