Repository navigation
fix: smooth bottom-sheet opening and restore press feedback - #4
Merged
Merged
Conversation
showModal() focused the close button while the panel was still translated off-screen, so the dialog scrolled ~460px and the sheet appeared halfway up before snapping into place. The dialog now uses overflow: clip (not programmatically scrollable), with a scrollTop reset as fallback. Entrance animations used fill-mode "both", which kept transform pinned after they ended and overrode the :active scale on the FAB, upcoming cards and catalogue tiles; "backwards" is enough since they end on the natural state. Bumps the version to 1.0.1 so installed apps refresh the offline cache. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0127iNTyhnYEypEm4cd97XPA
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Description
Fixes two animation problems that appeared when opening the Settings and Add subscription sheets.
Sheets appeared halfway up, then jumped into place.
showModal()moves focus to the close button while the panel is still translated off-screen. The dialog hadoverflow: hidden, which can still be scrolled programmatically, so the browser scrolled it about 460 px to bring the button into view. Measured frame by frame (Pixel 7 emulation, 839 px viewport), the panel's first frame was attop: 379instead of839and it snapped into place in about 80 ms instead of sliding for 320 ms.dialog.sheetnow usesoverflow: clip, which cannot be scrolled programmatically.ui.jsresetsscrollTopright aftershowModal(), as a fallback for browsers withoutclip.Press feedback never showed. Entrance animations (
rise,pop) usedanimation-fill-mode: both. That kepttransformpinned after the animation ended and overrode the:activescale on the add button, the upcoming cards and the catalogue tiles. They now usebackwards, which is enough because both keyframes end on the element's natural state.Also bumps
ST.VERSIONto 1.0.1 so installed apps refresh the offline cache, and updates the CHANGELOG.Type of change
Checklist
npm testpassestop: 839and eases to24over about 320 ms;overflow: hiddenforced, to exercise the fallback;scale(0.9) rotate(90deg);js/core/i18n.js(none added)ST.VERSIONbumped if cached assets changed (sw.js→ASSETS)🤖 Generated with Claude Code
https://claude.ai/code/session_0127iNTyhnYEypEm4cd97XPA
Generated by Claude Code