Repository navigation
Desktop: keep slide-in panels below the custom titlebar - #7954
Conversation
2416cdd to
5771975
Compare
|
#7957 landed first, and it turned out to carry its own compensation for this same overlap. I rebased this branch onto current main and removed the duplicate, so the two do not stack. Force-pushed to What collided#7957 added a With both live, those two panels get
So they started 68px down and hung 34px past the bottom. What I changed on top of your commit
Your approach is the right one, it just needed to be the only one. Verification189 measurements, chromium/firefox/webkit x the custom-titlebar, macOS and browser branches x all seven
|
|
pre-commit.ci run |
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. 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". |
5771975 to
55ebf13
Compare
|
Rebased onto current main again, which moved under us. Two things changed in the resolution, one of them a correction to what I pushed earlier. #8016 makes DesktopChromeVarsEffect load-bearingMy previous push deleted So deleting it would have broken desktop dialog positioning. It is restored, along with all three of its mount points, and the contract test no longer asserts it is gone. This branch now only removes the per-sheet compensation, which is the part that actually double-offsets. Class list merge with #8016
State
|
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. 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". |
…s landed unslothai#7957 merged first and gave the response details and document preview sheets their own compensation for the same overlap: a marginTop plus height: calc(100% - var(--studio-custom-titlebar-height)). With SheetViewportInsetProvider both apply, pushing those two panels to 68px and leaving them 34px past the viewport bottom. Remove the per-sheet compensation so the context is the only offset for sheets, and extend the contract test to pin that. DesktopChromeVarsEffect stays: unslothai#8016 gave it a second job, mirroring --studio-window-chrome-top for the dialogs that portal to body.
cb764ae to
456d14d
Compare
|
Your CSS-variable approach is better than the context, and I verified it. Also rebased onto current main, which clears every red check. The redesign holds up
One thing I specifically checked, because arbitrary-value variants with a comma inside All three sides are present, and Geometry, 378 measurements across chromium, firefox and webkit x the custom-titlebar, macOS and browser branches x all seven
The red checks were staleness, not this PRThe branch was 13 commits behind main. Both failure clusters are already fixed there:
After the rebase: contract tests 34 passed, 0 failed. The |
|
@codex review |
1 similar comment
|
@codex review |
|
Cross-OS results are in, on real Windows, macOS and Linux runners. All three green, 420 measurements, zero violations.
msedge on Windows is the same Chromium family as the WebView2 runtime the packaged app actually uses, so that leg exercises the real desktop engine with real Segoe UI metrics. Every viewport-fixed sheet starts at 34px on the custom-titlebar path and 0px on macOS and in the browser; One gap worth stating rather than glossing: WebKit timed out on |
|
Codex Review: Didn't find any major issues. What shall we delve into next? 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". |
Problem
In the packaged Studio desktop app on Windows and Linux, certain slide-in panels open partly behind the app's opaque custom titlebar. The top 34px of the panel is covered, leaving its title and close button partly hidden.
Still affected on main: chart settings, and the sidebar and run settings panels at mobile-layout widths. Response details, RAG document preview and deep research hit the same bug but each carries its own local offset, which this PR replaces. Browser mode and macOS are unaffected.
Reproduction
Root cause
Studio implements these slide-in panels with a shared UI component called
SheetContent. The custom titlebar is 34px tall and renders above the panels. Fixed panels still start attop: 0and fill the viewport, so the titlebar covers their upper edge.Radix renders the panels under
document.body, outside the desktop chrome wrapper, so they cannot inherit the titlebar height variable defined there. #7957 solved that by mirroring the variable onto<html>, then offset two panels individually. The remaining panels, and any panel added later, still start attop: 0.Fix
--studio-custom-titlebar-heightinSheetContent, so one place offsets every fixed panel. It is unset in the browser and on macOS, where the0pxfallback applies.Caller-provided inline styles still take precedence. The overlay remains full-viewport, and the docked chat settings panel keeps its existing in-tree offset.
Screenshots
Before
After
Testing
python3 -m pytest tests/studio/test_desktop_reliability_frontend_contract.py -q(26 passed;test_desktop_titlebar_separates_navigation_from_sidebar_brandfails identically on main)npm test(724 passed)npm run typecheckgit diff --checkRuntime validation
Built and ran a Linux AppImage containing this change.
The regression test covers the
<html>mirror, fixed-panel inset conditions, edge anchoring, and removal of the local offsets.