Repository navigation
chore(templates): editor sizes its sidebar with LayoutPanel's width prop - #12027
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Approved pending CI: the CI workflow has not finished on this head yet; its first run was refused because CI was full, and a re-run is in progress.
The editor template now sizes its sidebar with LayoutPanel's width prop, which LayoutPanel's contract already defines: the panel does not shrink, and width sets its inline size in pixels. Renders of the page before and after, at 1280 px and 390 px, are pixel-identical, and the CLI's build recommendations and template skeleton are unchanged. Nothing else is needed from you.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Changeset: the editor template sizes its sidebar with LayoutPanel's width prop instead of an inline style. Verified at
page.tsx:817. - Changeset: pages look the same. Verified: renders at 1280 px and 390 px are pixel-identical.
- Description: the width prop replaces an inline style with a width and flex-shrink. Verified; LayoutPanel already sets flex-shrink to 0.
- Description: no design or behavior change. Verified: the same computed width and flex-shrink, and the same markup apart from the panel root's style attribute.
- Description: pixel-identical at 390 px and 1280 px, with script on and off. Verified with script on; script-off was not rendered again.
- Description: behavior unchanged in a browser check. Verified.
- Description: build replay shows no change to the start, alternatives or block lists. Verified for three build requests with identical output.
- Description: typecheck, lint and prettier pass. Lint is green on this head and prettier passes; the width value fits the prop's number-or-string type.
- Description: one change, in one page template. Verified.
- Description: public text contains no internal context. Verified.
.changeset/cleanup-editor.md: clear.packages/cli/assets/templates/pages/editor/page.tsx: clear.
PR Analysis Report🔎 Preview ·
|
What
The
editorpage template's sidebar usesLayoutPanel'swidthprop instead of an inlinestylewith a width and flex-shrink.Why
Cleaner template code: the page uses the Core piece that already does this job instead of a hand-written version. No design or behavior change.
Evidence
Scope