Skip to content

fix(web): model picker keeps its glass, and the effort band is a compact card - #10

Merged
ethanlee66 merged 1 commit into
mainfrom
fix/model-picker-effort-band
Nov 24, 2026
Merged

ethanlee66 merged 1 commit into
mainfrom
fix/model-picker-effort-band

Conversation

@ethanlee66

Copy link
Copy Markdown
Owner

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 animated left and width on the main thread, and picking a level re-renders the composer.

Changes

  • Glass restored: removed the leftover popover rule. Only the picker matched it any more.
  • Inset card: the slider is a 10px-radius card inset 8px, sharing the footer controls' background with no divider between them.
  • Smaller: the card goes from 88px to 60px. Padding, the track (28→20px), the thumb (28→20px) and the level row (28→24px) are tighter. All six labels (Low…Ultra) still fit without truncation.
  • Cursor: the track shows a pointer instead of ew-resize, and grabbing while scrubbing.
  • Smooth switching: the thumb and fill now move with 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) and CosmicEffortSlider.logic.test.ts (6) pass.
  • Checked in the web client: the picker's glass, the card at Medium and at Ultra (gradient fully visible), the cursor, and that labels fit.

Done by Claude Opus 5.5 in Claude Code (T3 Code).

🤖 Generated with Claude Code

…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>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M labels Nov 24, 2026
@ethanlee66
ethanlee66 merged commit 9e1173d into main Nov 24, 2026
13 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants