Repository navigation
Site: slider on transform, hover gating, 320px demo controls - #22
Merged
Merged
Conversation
The settings slider's fill and knob now move with scaleX/translateX instead of width/left, hover styles only apply under a real pointer, the demo's Press row wraps its label on 320px phones instead of widening the page, taps skip the grey flash, and the copy button presses. Asset stamps bumped so the new CSS/JS load. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KnA8JgURE7Ame1zatWCMHS
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.
Requested by Boss · project thread
Item 6 and the phone baseline from the design-skills assessment (animation-performance, mobile-native, break-ui). This only touches
site/; the app is unchanged..msl .fillnow animatestransform: scaleX(var(--v))and.msl .knobanimatestranslateX(calc(var(--v) * (var(--w) - 20px))), replacingwidthandleft.sliderHTMLpasses--wnext to the inline width. I checked the geometry in Playwright: the knob lands at v·(w−20) and the fill at v·w, with intermediate values mid-transition..mp-mouseand.mg-rowkeep their height collapse. The rows underneath have to slide up into the gap, which needs layout (a transform would leave a hole), and it's a short one-off inside a smalloverflow: hiddenpanel.:hoverrules only apply on(hover: hover) and (pointer: fine). That includes.pill svg,.mice-grid liand.links-row a svg..btn,.copyand.seg buttongettouch-action: manipulation..copypresses atscale(0.97), and.btnkeeps its existing 0.98 press.site.css?v=7andsite.js?v=5.Checked locally with Playwright at iPhone 13, 320px and 1280px on index and mx-vertical: no horizontal scroll, 21 of 21 hovers gated, no page errors. theme-color was already set per scheme.
Generated by Claude Code