fix(web): keep the workspace title from stretching between tabs (UF-049)
The title carries a framer-motion layoutId for the card-to-header hero morph, which also animates any change of its box. With a short workspace name the title is as wide as the subtitle row; hiding that row on the Chat tab changed the width, and framer animated it as a horizontal scale (2.9x for "Eng"). Both titles now use layout="position": only the position animates, and the hero morph still moves the name into place. The hero-morph test checks it.
This commit is contained in:
@@ -77,6 +77,7 @@ Baseline: commit `b20b138` of `git.os-dev.tech/oleg.m/waggle-os`.
|
||||
| UF-046 | On macOS and Linux the desktop app kills the sidecar without its shutdown | Fixed | Desktop shell, sidecar |
|
||||
| UF-047 | The command palette's search text touches its focus outline | Fixed | Web UI |
|
||||
| UF-048 | The sidebar account row sits off-center at the bottom | Fixed | Web UI |
|
||||
| UF-049 | The workspace title stretches when switching tabs | Fixed | Web UI |
|
||||
|
||||
## Entries
|
||||
|
||||
@@ -485,3 +486,12 @@ Entries UF-010 to UF-019 come from the UI audit `anti-slop/audit-001-2026-10-14.
|
||||
- Cause: the row's bottom padding adds to the nav's own 14px bottom padding.
|
||||
- What we did: the row has 14px above its content and none below, so the nav's padding gives the same 14px underneath.
|
||||
- Recommendation: apply the same change in the main project.
|
||||
|
||||
### UF-049. The workspace title stretches when switching tabs
|
||||
- Status: Fixed
|
||||
- Found: 2026-10-26
|
||||
- Where: at commit `b20b138`, `apps/web/src/components/os/apps/WorkspaceDesktopApp.tsx:581` and `:701` (the title `motion.h2` with `layoutId`), with the subtitle row hidden on the Chat tab at `:710`
|
||||
- Symptom: in a workspace with a short name, switching between Overview and Chat stretches the title sideways for about half a second; in a workspace named "Eng" it was drawn 2.9 times wider.
|
||||
- Cause: the title carries a framer-motion `layoutId` for the card-to-header hero morph, and a `layoutId` animates any change of the element's box. The title's width follows the header column, which is as wide as the subtitle row when the name is short; hiding that row on the Chat tab changes the width, and framer animates it with a horizontal scale, which distorts the text.
|
||||
- What we did: both titles (the header and its loading skeleton) use `layout="position"`, so only their position animates and the hero morph still moves the name into place. The hero-morph test checks the setting; in the browser no tab switch puts a transform on the title any more.
|
||||
- Recommendation: apply the same change in the main project, and use `layout="position"` for any text that carries a `layoutId`.
|
||||
|
||||
Reference in New Issue
Block a user