summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcrates/wipfel/serve-here.sh2
-rw-r--r--crates/wipfel/src/app.rs1
-rw-r--r--crates/wipfel/www/style.css15
-rw-r--r--dist/wipfel/style.css15
-rw-r--r--dist/wipfel/wipfel_bg.wasmbin510826 -> 511017 bytes
5 files changed, 32 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;
diff --git a/dist/wipfel/style.css b/dist/wipfel/style.css
index a0ffc4d..baceb49 100644
--- a/dist/wipfel/style.css
+++ b/dist/wipfel/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;
diff --git a/dist/wipfel/wipfel_bg.wasm b/dist/wipfel/wipfel_bg.wasm
index 6c751d3..7b291aa 100644
--- a/dist/wipfel/wipfel_bg.wasm
+++ b/dist/wipfel/wipfel_bg.wasm
Binary files differ