Repository navigation
fix(web): keep portaled dialogs above the sidebar - #64650
stussysenik wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
The change looks safe, but I couldn't verify it here: this sandbox has no Firefox or X server, so I couldn't run the headed-Firefox screen-capture reproduction from #63541 on either the base or this branch. tsc passes for packages/app.
From the code, dropping layout and paint containment on vertical-tabs-panel changes very little else. overflow-clip still clips the panel (with the divider bleed margin). The mount inside it is still contain-strict, so its layout stays isolated. content-visibility:hidden still adds its own containment while the panel is hidden.
Public API: unchanged.
Two points:
- The new e2e case only checks that the class's CSS value is
style. It can't detect the paint-order bug, and any rewrite of that class would break it. For a one-class fix it can be dropped so the change stays minimal. - The reporter saw the dialog slip behind the side file preview. The side panels in
runtime/plugin/side-region.tsxandruntime/plugin/panels.tsxstill usecontain-strict, the same pattern this PR blames. Could you re-run your Xvfb capture with the file preview open and share the before/after for that case too?
| await expect(page.getByRole("heading", { name: fixture.expected.targetTitle })).toBeVisible() | ||
|
|
||
| // Layout or paint containment here makes Firefox composite the panel over dialogs after a pointer move. | ||
| await expect(page.locator('[data-slot="vertical-tabs-panel"]')).toHaveCSS("contain", "style") |
There was a problem hiding this comment.
This only checks the CSS value of the class rather than how the dialog is drawn, so it can't catch the regression and would break on any unrelated containment change. For a one-class fix I'd drop this case (and the seed import).
|
Both points addressed:
|
|
Thanks. I checked Your file-preview capture covers the second: in your runs the preview stays dimmed on both base and fix, and only the sidebar changes. I still can't run headed Firefox here, so I'm relying on your captures for the paint-order result. I have nothing else to raise. |
There was a problem hiding this comment.
The brittle containment e2e case and its seed import are gone, so the change is now the one class in shell.tsx. I still can't run headed Firefox in this sandbox, so I'm relying on your Xvfb captures, file-preview case included, for the paint-order result. Public API: unchanged. Nothing else to raise.
Issue for this PR
Closes #63541
Type of change
What does this PR do?
On Linux Firefox, the Delete session dialog stayed in the DOM but the dimmed backdrop and sidebar painted over it after a pointer move. The sidebar panel had
contain: layout style paint, so Firefox composited it above the dialog layers. Limiting it tocontain: stylekeeps its clipping and fixes the paint order. The product change is one class.How did you verify your code works?
devfile and with this branch. Dialog pixel at (1000,300): 255 on base, 153 with the fix.contain-strictinside-region.tsxandpanels.tsxneeds no change.bun run check35/35, stricttsc33/33, oxlint clean;shell-panel-spacing.spec.ts10/10.Screenshots / recordings
Same dialog and pointer move in each pair.
Sidebar, no file preview:
File preview open:
Checklist