Repository navigation
fix(workspace): keep thread header tabs within available space - #737
Merged
Merged
Conversation
nixuuu
marked this pull request as ready for review
November 14, 2026 16:46
nixuuu
added a commit
that referenced
this pull request
Nov 14, 2026
The thread header now separates project and action chrome from a rounded tab surface that continues into thread and file content. Tabs gain quieter inactive surfaces, separators, reserved close slots, hover feedback and reduced-motion-aware transitions while retaining #737 overflow behaviour. Windows and Linux use custom window controls (`titleBarStyle: hidden`, no native title-bar overlay); they inherit the chrome palette and retain the existing reserved width. macOS keeps left traffic lights. Summary-card internals and column centring are unchanged. Related: #711, #737 Validation passed: `bun install`, `bun run typecheck`, `bun run lint`, `bun run format:check`, and `bun run --filter @canopy/web build`. The final CSS adjustment was rechecked with web typecheck, lint, format:check and the web build. Checks ran with `nice` and private temporary files outside the repository. Browser review used a disposable remote stack, isolated database and synthetic files, constrained to one CPU. Light/dark, Thread + three file tabs, active file, 390 px phone, 640/768/1024/1440 px, short/long names, overflow selection, summary and Files were reviewed. Header bounds stayed at y=0 / height=48 before and after tab switches at every measured width; page scroll width matched the viewport. Hovering an inactive tab preserved its label bounds. Opaque reverse corners were reviewed at DPR 1 and actual DPR 2 (2880×1800 PNGs for a 1440×900 viewport). Browser development mode emitted the existing `derived_inert` warnings on both base and changed code, with no errors in the completed review. Windows/Linux browser simulation rendered the actual custom controls: header and controls resolved to the same chrome colour, with a 120 px reserve. With Files open that reserve moved to the panel's header. Computed app regions were `drag` on the header and `no-drag` on tab buttons; the macOS simulation retained an 88 px left clearance with the sidebar hidden. These checks do not exercise a native Electron window. PNG screenshots are retained outside git in `/var/tmp/canopy-tabs-shots/`: `{before,after}-{light,dark}-{1440,390}-{thread,file}.png`, plus `after-{light,dark}-1440-{thread,file}-2x.png`, summary/Files captures and Windows/Linux/macOS simulations. The path index is `paths.txt` in that directory. The disposable stack and review directory are cleaned after capture. No UI test suites were added or run. Copy audit: not applicable; no user-facing text changed. The documentation update describes the new surfaces only. Native manual checks before merge: 1. Windows/Linux: drag from empty left/right chrome; tab buttons, close buttons, menus and Files must stay clickable without dragging. 2. Minimize, maximize/restore and close; verify the Close red hover, light/dark appearance changes and alignment after zoom/fullscreen changes. 3. Open/close Files and the sidebar; window controls must retain chrome backing and never overlap action buttons. 4. macOS: traffic-light alignment and dragging with the sidebar open/closed, including zoom/fullscreen changes.
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Long active file names could extend outside the workspace tab strip and overlap Files at phone widths. The non-shrinking active tab was introduced in #711.
The title now gives space to tabs first. Thread keeps its slot, file names truncate within the available strip, and extra tabs collapse into +N using a rem-based width budget. Files uses an icon with an accessible name and tooltip below 40 rem. Its slot and the existing thread actions stay fixed when tabs open or close. The responsive Files control is extracted into WorkspaceFilesToggle; workspace documentation reflects the behavior.
Fixes: #711
Validation
Copy audit (§8)
Files text button → Files icon-only on phones; the same English accessible name is preserved and becomes the tooltip. Desktop copy is unchanged. No new error or empty-state text. Checked short and long labels at phone and desktop widths; the icon is not the only accessible cue.
Based on dev including #734. #735 was still open during validation; its files-view changes are not included in this PR.