summaryrefslogtreecommitdiff
path: root/crates/wipfel
diff options
context:
space:
mode:
Diffstat (limited to 'crates/wipfel')
-rw-r--r--crates/wipfel/src/app.rs13
-rw-r--r--crates/wipfel/www/style.css4
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;