Skip to content

fix: smooth bottom-sheet opening and restore press feedback - #4

Merged
lestolo merged 1 commit into
mainfrom
claude/brave-ride-ephvtr
Oct 4, 2026
Merged

lestolo merged 1 commit into
mainfrom
claude/brave-ride-ephvtr

Conversation

@lestolo

@lestolo lestolo commented Oct 4, 2026

Copy link
Copy Markdown
Owner

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 had overflow: 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 at top: 379 instead of 839 and it snapped into place in about 80 ms instead of sliding for 320 ms.

  • dialog.sheet now uses overflow: clip, which cannot be scrolled programmatically.
  • ui.js resets scrollTop right after showModal(), as a fallback for browsers without clip.

Press feedback never showed. Entrance animations (rise, pop) used animation-fill-mode: both. That kept transform pinned after the animation ended and overrode the :active scale on the add button, the upcoming cards and the catalogue tiles. They now use backwards, which is enough because both keyframes end on the element's natural state.

Also bumps ST.VERSION to 1.0.1 so installed apps refresh the offline cache, and updates the CHANGELOG.

Type of change

  • Bug fix
  • New feature
  • Catalogue / translations
  • Documentation
  • Refactoring / tooling

Checklist

  • npm test passes
  • Tested on a phone-sized viewport, in light and dark mode:
    • the sheet now starts at top: 839 and eases to 24 over about 320 ms;
    • the same holds with overflow: hidden forced, to exercise the fallback;
    • the desktop centred modal still animates correctly;
    • while pressed, the add button reports scale(0.9) rotate(90deg);
    • the full end-to-end flow has no console errors.
  • New UI strings are translated in every language in js/core/i18n.js (none added)
  • ST.VERSION bumped if cached assets changed (sw.js → ASSETS)
  • No secrets, API keys or personal data added
  • No new runtime dependencies or third-party requests

🤖 Generated with Claude Code

https://claude.ai/code/session_0127iNTyhnYEypEm4cd97XPA


Generated by Claude Code

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
@vercel

vercel Bot commented Oct 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sub-track Ready Ready Preview Oct 4, 2026 1:58pm UTC

Request Review

@lestolo
lestolo merged commit 22463b6 into main Oct 4, 2026
3 checks passed
@lestolo
lestolo deleted the claude/brave-ride-ephvtr branch October 4, 2026 14:03

This branch was successfully deployed

1 active deployment
Preview — b155e350 Deployed Oct 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants