Repository navigation
Studio: keep chat toasts clear of header controls - #8377
Conversation
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Went through this one carefully, including two isolated Studio installs to photograph the change and a set of simulations across browsers and window chrome. Summary first: the problem is real and measured, the fix is correct on every platform this can ship on, and I could not find anything it regresses. I pushed one test-only commit to the branch ( Before and after, from two installsMerge base Measured from the same page, not read off the picture:
The 18px matches the figure in the description exactly. One thing the description undersells: the mobile case was worse than the desktop one. Before this branch no
Does it hold on every platform
I also applied
So both of the earlier review points hold up. WSL is the web path, since Studio runs in a Windows browser there and BrowsersSame scene on Chromium, the real Edge binary, Firefox and WebKit. Identical on all four: top 52, right 12 at 1440px, top 52, right 16 at 375px, zero overlap everywhere. sonner switches to The case the unit tests cannot reachThe offset now comes from
Stacking is unchanged, as claimed: four toasts expand downward on a 94px pitch on both sides, nothing off screen, the new placement just moves the origin. CompatibilityNothing here touches the backend, the Rust side, or any GPU path, so the hardware matrix does not apply. No persisted state, no config, no API shape, so existing installs are unaffected until they take a new build.
The commit I pushed
Two small things, neither blocking
Looks good to me. |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Ran this across the OS matrix on a staging repo rather than the org queue, since it touches
Frontend CI, Unsloth API/GGUF/Tauri CI, the Windows and Mac Studio suites and Backend CI across Python 3.10 to 3.13 all pass on the branch as well. Two red jobs, neither caused by this PR:
|
Add cases for the pathname shapes the offsets have to classify: a route that only shares a prefix with a workspace, an unrecognised pathname (the 404 shell and the trailing-slash form of a media route, which this router does not normalise), a custom titlebar reported off the desktop app, and purity of the returned object.
521103f to
b1e736b
Compare

Problem
Upper-right notifications on the Chat page sit 64px from the right edge, which makes them look detached from the corner. That spacing originally made room for the header controls, but the header now has more controls and the toast still overlaps the temporary-chat button.
Because the offset belongs to the shared toast container, the same chat-specific spacing also applies on pages that do not have those controls.
Fix
Make the offsets route-aware. Chat notifications now start below the 48px header and use the normal right-edge inset. Other routes keep their existing top placement and return to the normal right inset.
Preserve the additional desktop titlebar clearance and set the mobile offsets explicitly. The existing two-toast visible stack and downward expansion behavior are unchanged.
Screenshots
Before
After
Testing
npm run typechecknpm run buildgit diff --check