diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-28 08:29:08 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-28 08:29:08 +0100 |
| commit | d57f022243850b532239ae08dd75717f55415fbf (patch) | |
| tree | 09483bd69792fa5d08376df7d2cfcaff4e4a97aa /crates/wipfel/src | |
| parent | bec163e60432e1303a37a6a7371156500e8a98e6 (diff) | |
web: move hover peak info below the Track section
Appearing between Display and Track it pushed the whole Track block
down on every hover. As the last item before the bottom-pinned info
texts the flexible spacer absorbs it — nothing jumps anymore.
Diffstat (limited to 'crates/wipfel/src')
| -rw-r--r-- | crates/wipfel/src/app.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/crates/wipfel/src/app.rs b/crates/wipfel/src/app.rs index 466ccc7..38c220e 100644 --- a/crates/wipfel/src/app.rs +++ b/crates/wipfel/src/app.rs @@ -1002,9 +1002,6 @@ pub fn app() -> Html { if !fit_info.is_empty() { <p class="fitinfo">{ (*fit_info).clone() }</p> } - if let Some(h) = hover.as_ref() { - <p class="hover">{ h.clone() }</p> - } <div class="section">{ "Track" }</div> <button onclick={open_track_picker}>{ "Load GPX Track…" }</button> if !track.is_empty() { @@ -1012,6 +1009,12 @@ pub fn app() -> Html { value={*track_width} min={50.0} max={1000.0} step={10.0} onchange={on_track_width} /> } + // last so revealing it on hover cannot shift any + // control above it (the bottom-pinned infofoot + // absorbs the height change) + if let Some(h) = hover.as_ref() { + <p class="hover">{ h.clone() }</p> + } </> } <div class="infofoot"> |
