fix(web): give phones a bottom navigation bar instead of the rail (UF-057)

At 375px the 64px icon rail took a fifth of the screen and Home's heading
wrapped over five lines. Below sm the rail hides, a bottom bar carries the
five places plus More (⌘K), and Home tightens its padding and heading.
This commit is contained in:
shumeiko.it
2026-10-27 14:36:35 +01:00
parent 5bf3dd9ea8
commit 3ae3cc81fc
7 changed files with 169 additions and 12 deletions

View File

@@ -85,6 +85,7 @@ Baseline: commit `b20b138` of `git.os-dev.tech/oleg.m/waggle-os`.
| UF-054 | Settings and the status bar name different default models | Fixed | Web UI, models |
| UF-055 | Home greets the user by the assistant's name | Fixed | Sidecar, Web UI |
| UF-056 | Home calls the last 24 hours "While you slept" | Fixed | Web UI |
| UF-057 | At phone width the sidebar rail takes a fifth of the screen | Fixed | Web UI |
## Entries
@@ -565,3 +566,12 @@ Entries UF-010 to UF-019 come from the UI audit `anti-slop/audit-001-2026-10-14.
- Cause: the summary always covers the last 24 hours, whatever the time of day, but the copy describes a night.
- What we did: the block is labelled "Last 24 hours", the story starts "In the last 24 hours, Waggle …" and the empty state reads "Nothing ran in the last 24 hours." The Dream Diary card keeps "While you slept": it shows the nightly memory run.
- Recommendation: apply the same change in the main project, or pass the time of the user's last visit as `since` and word the copy for that window.
### UF-057. At phone width the sidebar rail takes a fifth of the screen
- Status: Fixed
- Found: 2026-10-14
- Where: at commit `b20b138`, `apps/web/src/components/os/Sidebar.tsx:126` (the rail, `w-16` at every width) and `apps/web/src/components/os/apps/HomeCockpit.tsx:324` (the Home heading, 34px minimum) with the page's `px-8` padding
- Symptom: at 375px the 64px icon rail stays on the left, there is no bottom navigation, and the Home heading wraps over five lines.
- Cause: the layout has two states, the icon rail and the full sidebar; nothing replaces the rail on a phone, and the Home heading and padding keep their desktop minimums.
- What we did: below 640px the rail is hidden and a bottom bar carries the five places plus "More", which opens ⌘K for everything else. Every target is at least 56px tall, the bar respects the safe-area inset, and the canvas stops above it. Home uses 16px side padding and a 28px minimum heading on phones. A test covers the bar.
- Recommendation: apply the same change in the main project.