Repository navigation
fix(blocks): MascotPanel colour field width, aligned sticky preview - #583
Merged
Merged
Conversation
The custom colour fields sat in a Flex capped at maxWidth={10}, which is
10px, so they showed as a thin bar after the swatches. They now take up
to 160px and wrap under the swatches when the row is tight.
The side layout is a grid whose tracks can shrink, switching to one
column by container query below 34rem instead of by viewport width, so
it no longer spills past a narrow card or docs preview. The sticky
preview sits at top 0 (or --mascot-panel-sticky-top), level with the
first control group; at top 16px it was pushed down inside a scroll box
that starts flush with the panel. The docs examples scroll inside a
40rem box so the preview visibly sticks.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two board posts on docs
/components/mascotPanel.Color row: stray bar after the swatches
The custom colour field sat in
<Flex maxWidth={10}>. Flex numbers are pixels, so the field was 10px wide and showed as a thin bar. Separately, the side grid hadminmax(18rem…) minmax(20rem…)tracks, wider than the docs preview, so the controls column spilled past the box and got clipped.fillWidth maxWidth={160}and wrap under the swatches or switch when the row is tight.minmax(0, …). The panel stacks below 34rem by container query, based on its own width instead of the viewport's.Preview and Body tops not level; preview not sticky in docs
top: 16px, the sticky aside was pushed 16px down inside a scroll box that starts flush with the panel. It now usestop: var(--mascot-panel-sticky-top, 0), so both columns start level. The variable is there for hosts with a fixed header.Column, so the preview visibly sticks while the controls scroll.Verified in the docs dev server at 1280px: the Preview and Body headings are both at the same y (they were 16px apart). After scrolling the controls 500px, the preview stays put.
Checks
tsc,biomeand docscheck-examplesare clean.Generated by Claude Code