Fold buttons keep their centering transform while pressed on touch #58

Open
miko wants to merge 1 commit from feat/foldbtn-press into main
Owner

On touch layouts the fold button shares the press-feedback rule that sets transform: scale(0.96) while active. That replaced the button's translateY(-50%) centering, so the button dropped 18px for the length of the press and jumped back on release. The fold button now leaves the shared rule and presses with translateY(-50%) scale(0.96) plus a brightness lift, and the reduced-motion variant keeps the centering too.

Verified in Chromium (Blink) with the pressed state forced: the old rule moves the button down 18.7px while pressed; with this change it moves 0.7px, the shrink around its own center.

On touch layouts the fold button shares the press-feedback rule that sets transform: scale(0.96) while active. That replaced the button's translateY(-50%) centering, so the button dropped 18px for the length of the press and jumped back on release. The fold button now leaves the shared rule and presses with translateY(-50%) scale(0.96) plus a brightness lift, and the reduced-motion variant keeps the centering too. Verified in Chromium (Blink) with the pressed state forced: the old rule moves the button down 18.7px while pressed; with this change it moves 0.7px, the shrink around its own center.
Fold buttons keep their centering transform while pressed on touch
All checks were successful
github/analysis Analysis gate on GitHub runners
github/test Test gate on GitHub runners
github/core-only Core-only gate on GitHub runners
github/race Race gate on GitHub runners
46fa5b3e18
All checks were successful
github/analysis Analysis gate on GitHub runners
github/test Test gate on GitHub runners
github/core-only Core-only gate on GitHub runners
github/race Race gate on GitHub runners
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feat/foldbtn-press:feat/foldbtn-press'
git switch 'feat/foldbtn-press'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'feat/foldbtn-press'
git switch 'feat/foldbtn-press'
git rebase 'main'
git switch 'main'
git merge --ff-only 'feat/foldbtn-press'
git switch 'feat/foldbtn-press'
git rebase 'main'
git switch 'main'
git merge --no-ff 'feat/foldbtn-press'
git switch 'main'
git merge --squash 'feat/foldbtn-press'
git switch 'main'
git merge --ff-only 'feat/foldbtn-press'
git switch 'main'
git merge 'feat/foldbtn-press'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
EveSynapse/evesynapse!58
No description provided.