Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

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

Duarte Santos06f1c007a73c
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3f87f8222..d74b2b00c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/frontend/src/index.css b/frontend/src/index.css
index 4bd7ad093..88f23a158 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -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;