Repository navigation
Renderer workbench: the view is a card on the gutter, like the Inspector's - #280
Conversation
c8a2ff3 to
f1d8c62
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The card clips its nested ProjectionView when the bottom panel is enlarged, hiding the renderer’s bottom and summary bar without a scrollbar to reach them.
1 open issue
What changed in this PR
Makes the renderer workbench view a rounded card, matching the Inspector’s sidebar and bottom panel.
Changes:
- Adds consistent gutters, borders, and rounded clipping.
- Preserves centered, dashed cards at device widths.
- Adds browser coverage and a changelog entry.
| File | Description |
|---|---|
| packages/host/inspector/src/styles.css | Applies dashed borders at device widths. |
| packages/host/inspector/src/fixtures/workbench/body.tsx | Adds card styling and gutters to the view. |
| packages/host/inspector/browser/fixtures.spec.ts | Tests card appearance, spacing, containment, and phone width. |
| changelog.d/280.md | Documents the workbench’s visual update. |
Review effort: Balanced
f1d8c62 to
50468e8
Compare
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
4 open issues
After clicking the sidebar/panel toggle buttons, the test immediately reads computed styles and… · New The comment says this rule is specific to the renderer workbench, but the selector targets any… · New The test hard-codes the gutter as8(and also bakes in1440for the right-edge check). If… · New The test hard-codes the gutter as8(and also bakes in1440for the right-edge check). If… · New
1 resolved since last review
Review effort: Lite
There was a problem hiding this comment.
🟢 Approval recommended
The workbench card-layout update has no active review issues.
No open issues 🎉
4 resolved since last review
The comment says this rule is specific to the renderer workbench, but the selector targets any… After clicking the sidebar/panel toggle buttons, the test immediately reads computed styles and… The test hard-codes the gutter as8(and also bakes in1440for the right-edge check). If… The test hard-codes the gutter as8(and also bakes in1440for the right-edge check). If…
Review effort: Balanced
…tor's Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…say which view is a .pi-viewport Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
0c7601f to
49e4260
Compare


Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
49e42608e7e0013c596837ad9260ede76b79fd69↑ Full inspector chromium-desktop browser suite passes locally.
↑ Manually measured light/dark, sidebar and panel open/closed, 900px drawer, tablet and side by side.
↑ CI fully green on the pre-rebase head (0c7601f); Copilot review clean.
↓ Rebased onto #278 (kit only, no overlapping files) and re-verified locally with check --fast and the inspector card/fixtures browser tests; CI on this head not awaited.
What
In the renderer (fixtures) workbench,
projections-renderer-workbench, the Explorer and the bottom panel were rounded cards on the gutter, but the view sat flush against them, with no border and no gutter. The view is now a.pi-cardlike the others: same radius, border and surface, one gutter from the sidebar, the panel, the window edge and the status bar, with its toolbar flat inside.overflow: hiddenclips the renderer iframe and the floating summary bar to its corners. Inside a view card, the view drops its embedded minimum height (min(28rem, 75dvh)) and shrinks with the card, so a tall bottom panel doesn't hide the view's foot. The Inspector's view card has the same structure, so the rule covers it too.At a tablet or phone viewport the card narrows to that width, centred, and keeps the dashed edge the old frame had (
styles.css).Why, and was it a regression?
It wasn't a regression. The Inspector's own view has been a card since the initial import (
page.tsx:!bare && 'pi-card pj:m-[var(--pi-gutter)]'), andstyles.cssdescribes the view as one of the cards. The fixtures workbench renders its ownWorkbenchBodyinstead of the Inspector'sPresentedView, and since the initial import its view was a plain full-widthpi-viewport(dashed and rounded only at a device width). The card treatment never applied to it.Screenshots
Language-server scenario, FsAutoComplete 0.78.5 to 0.87.0, desktop, bottom panel open.
Before (light)
After (light)
Before (dark)
After (dark)
Tests
browser/fixtures.spec.ts: "the view is a card on the gutter, like the Explorer and the panel" (chromium-desktop).tools test packages/host/inspector --browser chromium-desktop --filter 'card|fixtures mode|checks panel': 7 passed.tools check --fast: pass.