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.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
Workout: im Listenmodus bleibt der Kopf (Name, Uhr, Saetze, Abbrechen/Fertig, Fortschritt) oben stehen
Duarte Santos00adae77e89c
diff --git a/frontend/src/index.css b/frontend/src/index.cssindex 16921326d..92a2df269 100644--- a/frontend/src/index.css+++ b/frontend/src/index.css@@ -602,6 +602,21 @@ h4.sec{.ck.on svg{stroke:var(--on-acc)}/* ------------------------------------------------------------- workout --- */+/* Workout header. In list mode it is pinned: pulled up over #app's top padding so it sits flush+ with the screen edge from the first pixel, and given the page's own ground plus a light blur so+ the rows scrolling underneath read as underneath. */+.whdr.stick{+ position:sticky;top:0;z-index:20;+ margin:calc(-1 * (var(--sat) + 8px)) calc(-1 * var(--pad)) 6px;+ padding:calc(var(--sat) + 8px) var(--pad) 0;+ background:color-mix(in srgb,var(--bg) 94%,transparent);+ -webkit-backdrop-filter:saturate(180%) blur(10px);backdrop-filter:saturate(180%) blur(10px);+}+.whdr.stick .hdr{margin-bottom:12px}+.whdr.stick .wprog{margin-bottom:10px}+@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){+ .whdr.stick{background:var(--bg)}+}.wprog{height:4px;background:var(--surface-2);border-radius:99px;overflow:hidden;margin-bottom:16px}.wprog i{display:block;height:100%;background:var(--acc);border-radius:99px;transition:width var(--med) var(--ease)}.exmedia{position:relative;border-radius:var(--r-lg);overflow:hidden;background:#fff;margin-bottom:12px}diff --git a/frontend/src/views/Workout.jsx b/frontend/src/views/Workout.jsxindex 00d5ea19d..c16255eec 100644--- a/frontend/src/views/Workout.jsx+++ b/frontend/src/views/Workout.jsx@@ -719,12 +719,17 @@ function ActiveWorkout() {}, [])return <div className="narrow">+ {/* In list mode the whole session scrolls under the header, so the header (name, clock,+ set counter, discard/finish, progress) stays pinned — the one thing you want in view+ while you are somewhere in the middle of a long stack. Cards mode never scrolls far. */}+ <div className={'whdr' + (listMode ? ' stick' : '')}><div className="hdr"><button className="iconbtn" aria-label={t('Discard')} onClick={() => confirmSheet({ title: t('Discard workout?'), message: t('The sets you logged in this session will be lost.'), confirmText: t('Discard'), danger: true, onConfirm: () => { update(s => { s.active = null }); stopRest(); stopWork(); nav('/home') } })}><Icon name="xmark" /></button><div style={{ textAlign: 'center' }}><div style={{ fontWeight: 600 }}>{A.name}</div><div className="sub">{A.backfill ? fmtDate(A.d, true) : <Elapsed start={A.start} />} · {t('{0} sets', done + '/' + total)}</div></div><button className="iconbtn" style={{ color: 'var(--acc)' }} aria-label={t('Finish')} onClick={finishWorkout}><Icon name="check" /></button></div><div className="wprog"><i style={{ width: (total ? done / total * 100 : 0) + '%' }} /></div>+ </div>{A.backfill && <div className="muted small" style={{ marginBottom: 8 }}>{t('Logging a past workout — no rest timers.')}</div>}{A.entries.length ? (listMode ? (