diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ca5f67..80abdbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## v1.1.2 — 2026-07-21 + +- 📱 Fixed the exercise-config sheet (Sets / Reps / Weight, and the cardio variant) overflowing the + screen edge on narrow phones — the Weight stepper was clipped and could make the whole page pan + sideways in iOS Safari. Steppers now shrink to fit the viewport. (#10) +- 🛡️ Added a global horizontal-overflow guard so a single too-wide element can no longer knock the + page layout off-scale. + ## v1.1.1 — 2026-07-21 Reliability fixes for the push notifications shipped in v1.1.0, found through live testing: diff --git a/frontend/src/index.css b/frontend/src/index.css index 23a7a59..9f7e2de 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -29,11 +29,11 @@ button,.chip,.tile,.item,.wday,.cal-d,.ck,.swatch,.emoji-cell,.hm-c,#tabbar,.ste @media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}} /* html carries the theme background too, so the iOS scroll-lock (position:fixed on body) can never expose a grey strip below the app when a modal opens */ -html{font-size:16px;background:var(--bg);overscroll-behavior:none} +html{font-size:16px;background:var(--bg);overscroll-behavior:none;overflow-x:clip} body{ background:var(--bg); color:var(--txt); font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Roboto,sans-serif; - min-height:100vh; overscroll-behavior-y:none; + min-height:100vh; overscroll-behavior-y:none; overflow-x:clip; -webkit-font-smoothing:antialiased; touch-action:manipulation; } button{font:inherit;color:inherit;background:none;border:none;cursor:pointer} @@ -144,6 +144,12 @@ a{color:var(--acc)} .step input{width:58px;text-align:center;background:none;border:none;font-size:1.05rem;font-weight:700;outline:none; -moz-appearance:textfield;appearance:textfield} .step input::-webkit-inner-spin-button{display:none} +/* exercise-config sheet: three steppers side by side must shrink to fit narrow phones */ +.cfgrow{gap:8px} +.cfgrow>div{flex:1;min-width:0} +.cfgrow .step button{width:32px} +.cfgrow .step input{width:100%;min-width:0} +.cfgrow .small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis} /* ---------- workout ---------- */ .wprog{height:5px;background:var(--bg2);border-radius:99px;overflow:hidden;margin-bottom:14px} diff --git a/frontend/src/sheets.jsx b/frontend/src/sheets.jsx index 7166715..9bac6dc 100644 --- a/frontend/src/sheets.jsx +++ b/frontend/src/sheets.jsx @@ -258,7 +258,7 @@ function ExConfig({ ex, existing, onSave, onDelete, close }) { {cardio && 🏃 Cardio} {ex.tg || ex.bp}{ex.eq} -
+
{cardio ? <> setC(x => ({ ...x, sets: v }))} /> setC(x => ({ ...x, min: v }))} />