From 06f1c007a73c8bc0ae979c50cd18ed445f92e8b4 Mon Sep 17 00:00:00 2001 From: Duarte Santos Date: Sat, 12 Sep 2026 21:08:40 +0200 Subject: [PATCH] =?UTF-8?q?Chip=20rows:=20the=20chips'=20enlarged=20tap=20?= =?UTF-8?q?area=20gave=20the=2032px=20strip=20a=2036px=20scroll=20height,?= =?UTF-8?q?=20so=20a=20diagonal=20swipe=20or=20a=20wheel=20tick=20shifted?= =?UTF-8?q?=20the=20whole=20row=20up=204px=20and=20left=20it=20there=20?= =?UTF-8?q?=E2=80=94=20the=20slop=20is=20clipped=20to=20the=20strip=20vert?= =?UTF-8?q?ically?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 5 +++-- frontend/src/index.css | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f87f82..d74b2b0 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 4bd7ad0..88f23a1 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;