diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 17:07:56 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 17:07:56 +0100 |
| commit | 9d95a88448143dcbddd3766e8f5b418e5da42d3a (patch) | |
| tree | 1add7670d87e24d6adf9ee8347593abea4379e0e /crates/wipfel/src | |
| parent | d126648749b103376c233c1df24346a941c70eb4 (diff) | |
web: always show canvas status overlay + build stamp
The overlay was suppressed whenever the panel was open — but Firefox
on Android defaults to desktop-site mode, which reports a 980px
viewport and thus keeps the panel open on phones. The overlay now
always shows (it doubles as the pinch-diagnostic readout), and the
initial status carries a build stamp so a stale cached page is
recognizable at a glance.
Diffstat (limited to 'crates/wipfel/src')
| -rw-r--r-- | crates/wipfel/src/app.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/wipfel/src/app.rs b/crates/wipfel/src/app.rs index f3acd3a..09bf467 100644 --- a/crates/wipfel/src/app.rs +++ b/crates/wipfel/src/app.rs @@ -149,7 +149,7 @@ fn find_peak_panel(p: &FpProps) -> Html { pub fn app() -> Html { let bitmap = use_state(|| None::<web_sys::ImageBitmap>); let view = use_state(ViewState::default); - let status = use_state(|| "No image loaded.".to_string()); + let status = use_state(|| "No image loaded · build 27c".to_string()); let db_status = use_state(|| "Loading hill database…".to_string()); let fit_info = use_state(String::new); let tick = use_state(|| 0u32); @@ -951,8 +951,8 @@ pub fn app() -> Html { if !*nav_open { <button class="nav-toggle" title="Show controls" onclick={expand_cb}>{ "☰" }</button> - <div class="canvasstatus">{ (*status).clone() }</div> } + <div class="canvasstatus">{ (*status).clone() }</div> <CanvasView bitmap={bitmap.as_ref().cloned()} view={(*view).clone()} |
