diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 16:57:34 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 16:57:34 +0100 |
| commit | d126648749b103376c233c1df24346a941c70eb4 (patch) | |
| tree | a2020a8b4f7fed5d82f1ec6615a5e342f91e5c72 /crates/wipfel | |
| parent | 344b13444fe8ee9825ed33f8676d6091c70a77cb (diff) | |
web: dev script must copy index.html too (viewport meta never deployed)
serve-here.sh only refreshed style.css and the wasm bundle, so the
viewport meta change that frees the pinch gesture for the app never
reached the served page. Copy the loader page as well, and surface
the status line as a small overlay over the canvas when the control
panel is collapsed (mobile) — this is also where the pinch pointer
diagnostics become visible on phones.
Diffstat (limited to 'crates/wipfel')
| -rwxr-xr-x | crates/wipfel/serve-here.sh | 2 | ||||
| -rw-r--r-- | crates/wipfel/src/app.rs | 1 | ||||
| -rw-r--r-- | crates/wipfel/www/style.css | 15 |
3 files changed, 17 insertions, 1 deletions
diff --git a/crates/wipfel/serve-here.sh b/crates/wipfel/serve-here.sh index 9667965..2accdb9 100755 --- a/crates/wipfel/serve-here.sh +++ b/crates/wipfel/serve-here.sh @@ -7,6 +7,6 @@ cargo build -p wipfel --target wasm32-unknown-unknown --release DIST=/tmp/wipfel-dist mkdir -p "$DIST" wasm-bindgen --target web --out-dir "$DIST" target/wasm32-unknown-unknown/release/wipfel.wasm -cp crates/wipfel/www/style.css "$DIST/" +cp crates/wipfel/www/index.html crates/wipfel/www/style.css "$DIST/" gzip -9 -n -c gipfel.dat > "$DIST/gipfel.dat.gz" echo "dist refreshed: $(ls -la "$DIST" | awk '{s+=$5} END {print s" bytes"}')" diff --git a/crates/wipfel/src/app.rs b/crates/wipfel/src/app.rs index c4a42df..f3acd3a 100644 --- a/crates/wipfel/src/app.rs +++ b/crates/wipfel/src/app.rs @@ -951,6 +951,7 @@ pub fn app() -> Html { if !*nav_open { <button class="nav-toggle" title="Show controls" onclick={expand_cb}>{ "☰" }</button> + <div class="canvasstatus">{ (*status).clone() }</div> } <CanvasView bitmap={bitmap.as_ref().cloned()} diff --git a/crates/wipfel/www/style.css b/crates/wipfel/www/style.css index a0ffc4d..baceb49 100644 --- a/crates/wipfel/www/style.css +++ b/crates/wipfel/www/style.css @@ -63,6 +63,21 @@ body { .nav-toggle:hover { background: rgba(59, 111, 212, 0.9); } +.canvasstatus { + position: absolute; + bottom: 6px; + left: 8px; + right: 8px; + font-size: 11px; + color: #e8e8ea; + background: rgba(16, 16, 20, 0.7); + padding: 3px 8px; + border-radius: 5px; + pointer-events: none; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} .sidebar h1 { margin: 0; font-size: 22px; |
