Fix exercise-config sheet overflowing on narrow phones (#10)
The Sets/Reps/Weight stepper row (and its cardio variant) used fixed-width steppers that added up to ~445px — wider than an iPhone viewport — clipping the Weight stepper off-screen and letting iOS Safari pan the whole page sideways. Steppers in the config sheet now flex and shrink to fit, and html/body clip horizontal overflow as a safety net.
This commit is contained in:
1 parent
42402cae0c
commit
b9f8d18bbd
3 files changed
+17
-3
No files matched your search
@@ -258,7 +258,7 @@ function ExConfig({ ex, existing, onSave, onDelete, close }) {
|
||||
{cardio && <span className="tag acc">🏃 Cardio</span>}
|
||||
<span className="tag">{ex.tg || ex.bp}</span><span className="tag">{ex.eq}</span>
|
||||
</div>
|
||||
<div className="row" style={{ justifyContent: 'space-around', marginBottom: 18 }}>
|
||||
<div className="row cfgrow" style={{ marginBottom: 18 }}>
|
||||
{cardio ? <>
|
||||
<Stepper label="Intervals" value={c.sets} step={1} decimal={false} onChange={v => setC(x => ({ ...x, sets: v }))} />
|
||||
<Stepper label="Minutes" value={c.min} step={1} decimal={false} onChange={v => setC(x => ({ ...x, min: v }))} />
|
||||
|
||||
Reference in new issue
Block a user