Chip rows: the chips' enlarged tap area gave the 32px strip a 36px scroll height, so a diagonal swipe or a wheel tick shifted the whole row up 4px and left it there — the slop is clipped to the strip vertically

This commit is contained in:
Duarte Santos committed 2026-09-12 21:08:40 +02:00
1 parent 35c810a663
commit 06f1c007a7
2 files changed
+8 -2

No files matched your search

+3 -2
View File
@@ -41,8 +41,9 @@ tab bar mid-screen during a workout. Web bundle, APK and API image.
(The Android APK has no Web Push: its reminders are local notifications scheduled on the phone.)
- 👉 **The Exercises chip rows scroll sideways only.** Revealing the active chip used
`scrollIntoView`, which also scrolls every ancestor: with the row above the fold a tap made the
whole page jump. The row now moves only its own scroll position, and it contains overscroll on
both axes. On a desktop browser a chip row can be dragged with the mouse (HenryByte, !119, #147).
whole page jump. The row now moves only its own scroll position, it contains overscroll on
both axes, and the chips' enlarged tap area no longer gives the row a 4 px vertical scroll range
of its own (a diagonal swipe or a wheel tick used to shift the whole row up and leave it there). On a desktop browser a chip row can be dragged with the mouse (HenryByte, !119, #147).
- 📱 **Sheets stop short of the notch / Dynamic Island.** Every bottom sheet's height now subtracts
the top safe-area inset (and so does the exercise picker when the keyboard is up); centred
dialogs scroll inside themselves instead of growing past the screen. On Android the app declares
+5
View File
@@ -438,6 +438,11 @@ h4.sec{
strip is at its end, a diagonal drag must not chain into the page either. */
.chips,.hm-wrap{overscroll-behavior-x:contain;scroll-padding-inline:16px}
.chips{touch-action:pan-x;overscroll-behavior:contain}
/* The chip hit-area (.chip::before, inset:-6px) must not poke out of the strip vertically:
overflow-x:auto makes overflow-y auto as well, and that 6px of positioned overflow gave
the 32px row a 36px scroll height — a diagonal swipe, wheel or drag then scrolled the
whole row up by 4px and left it there. Vertical slop is clipped by the strip anyway. */
.chips .chip::before{top:0;bottom:0}
.chip{
flex:none;padding:6px 13px;border-radius:99px;background:var(--surface);
font-size:14px;font-weight:400;color:var(--label);text-transform:capitalize;