Repository navigation
fix(web): model picker keeps its glass, and the effort band is a compact card - #10
Merged
Merged
Conversation
…act card Since the thinking-depth slider moved into the model picker, a style meant for its old standalone popover matched the picker too, so the whole popup lost its background and blur and the page showed through. - Drop the leftover popover rule; the picker keeps its normal glass surface. - The slider sits in an inset rounded card that shares the footer's background, instead of a square edge-to-edge band. - The band is about a third shorter (88px to 60px). - Hovering the track shows a pointer instead of a resize arrow, and a grabbing hand while scrubbing. - The thumb and fill animate with transforms, so the slide stays smooth while picking a level re-renders the composer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Since #7 moved the thinking-depth slider into the model picker, a CSS rule written for the old standalone slider popover (
[data-slot="popover-popup"]:has(.cosmic-effort-chamber)) also matched the picker. The whole picker lost its glass background, blur and border, so page text showed through the model list. The slider band itself was square-cornered, edge to edge and fairly tall. Clicking a level also stuttered: the thumb and fill animatedleftandwidthon the main thread, and picking a level re-renders the composer.Changes
ew-resize, andgrabbingwhile scrubbing.translateX, which runs on the compositor and keeps going while the composer re-renders. The fill's gradient beam is counter-shifted so its colors stay fixed to the track. The rail is clipped horizontally with room left for the glow.Evidence
Before/after screenshots are attached in the comments below.
Measured in dev: picking a level caused two main-thread long tasks (66ms and 52ms) during the 380ms slide, and
left-driven frames dropped to 50–57ms gaps. With transforms the slide no longer depends on the main thread. After the slide, the thumb center and fill end both land on the selected label's center.Verification
vp run check:changed: format, lint, knip, typecheck, tests and react compiler all pass.ComposerModelEffort.browser.test.tsx(5) andCosmicEffortSlider.logic.test.ts(6) pass.Done by Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code