UI fixes found while testing the workout flow

· The rest timer floats above the tab bar, so it covered the set rows
  underneath it — during a rest, the next set was behind the bar. The page
  now gets enough bottom padding while a rest runs to scroll clear of it.
· "Skip today", sitting right under "Save & start workout", reads like
  skipping the session rather than the weigh-in. It says "Start without
  weighing in".
· The calendar legend drew "Planned" in blue while planned days have
  always had a grey dot.
· Body weight showed "− 0" when it hadn't moved since the last weigh-in.
· In a superset both exercises are on screen at once, so their animations
  give way: 180px meant scrolling a full screen between two exercises you
  are meant to alternate.
This commit is contained in:
Duarte Santos committed 2026-07-24 23:45:36 +02:00
1 parent 43d5495007
commit 827c0f8505
4 files changed
+17 -5

No files matched your search

+3 -2
View File
@@ -97,9 +97,10 @@ export default function Home() {
{bw ? <>
<div className="row" style={{ gap: 8, alignItems: 'baseline' }}>
<div className="big">{fmtNum(bw.w)} <span className="muted" style={{ fontSize: '1rem' }}>{S.unit}</span></div>
{delta !== null && (
{/* only when it actually moved — an unchanged weight used to read as "− 0" */}
{!!delta && (
<span className="small row" style={{ gap: 2, fontWeight: 500, color: bwDeltaColor(delta, bw.w) }}>
<Icon name={delta > 0 ? 'arrowUp' : delta < 0 ? 'arrowDown' : 'minus'} style={{ fontSize: 12 }} />
<Icon name={delta > 0 ? 'arrowUp' : 'arrowDown'} style={{ fontSize: 12 }} />
{fmtNum(Math.abs(delta))}
</span>
)}