diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 15:01:31 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 15:01:31 +0100 |
| commit | 5f8428d01241ed0a3376ecf9b671939a858d2465 (patch) | |
| tree | a746675a05d955861200f3367d381872c6d8d810 /crates/wipfel/www | |
| parent | f91431fefa0418b80dea1246aecac2c6a9dfc416 (diff) | |
web: FOV visibility limit, GPX controls in Display, collapsible sidebar
- port of the desktop bump() lens-FOV clamp: max_view_angle is the
angle at which the (distorted) projection reaches the image edge;
peaks beyond it cannot be inside the photo even when the fitted
distortion folds their projection back into the image. Recomputed
each render (idempotent, only rebuilds visibility on change) — this
is what let impossible peaks show up at high visibility settings
- 'Load GPX Track…' moved from the top into the Display section next
to the Track width slider (optional, advanced)
- collapsible control panel: collapse button in the sidebar corner,
floating hamburger button over the canvas when hidden; starts
collapsed on viewports narrower than 900px
Diffstat (limited to 'crates/wipfel/www')
| -rw-r--r-- | crates/wipfel/www/style.css | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/crates/wipfel/www/style.css b/crates/wipfel/www/style.css index 5122c43..7170199 100644 --- a/crates/wipfel/www/style.css +++ b/crates/wipfel/www/style.css @@ -22,6 +22,42 @@ body { flex-direction: column; gap: 8px; overflow-y: auto; + position: relative; +} +.sidebar.collapsed { + display: none; +} +.sidebar .collapse-btn { + position: absolute; + top: 10px; + right: 10px; + width: 28px; + height: 28px; + padding: 0; + background: #2c2c34; + font-size: 12px; + border-radius: 5px; +} +.sidebar .collapse-btn:hover { + background: #3b3b46; +} +.nav-toggle { + position: absolute; + top: 10px; + left: 10px; + z-index: 5; + width: 36px; + height: 36px; + padding: 0; + background: rgba(26, 26, 32, 0.85); + color: #e8e8ea; + border: 1px solid #2c2c34; + border-radius: 6px; + font-size: 16px; + cursor: pointer; +} +.nav-toggle:hover { + background: rgba(59, 111, 212, 0.9); } .sidebar h1 { margin: 0; |
