Skip to content

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.

fix: tighten mobile workout bottom scroll

Manuel21049e932820
diff --git a/frontend/src/index.css b/frontend/src/index.css
index 206733377..b20f052d3 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -162,12 +162,13 @@ button,.chip,.tile,.item,.wday,.cal-d,.swatch,.hm-c,.lrow,.seg button,.stp butto
/* ---------------------------------------------------------------- layout -- */
#app{
- padding:calc(var(--sat) + 8px) var(--pad) calc(128px + var(--sab));
+ padding:calc(var(--sat) + 8px) var(--pad) calc(88px + var(--sab));
max-width:560px;margin:0 auto;
}
-/* while the rest timer floats above the tab bar, keep its height scrollable-past
- (the rest variant is two rows tall — ~44px more than the single-row work timer) */
-body.resting #app{padding-bottom:calc(250px + var(--sab))}
+/* Keep the last workout controls clear of the mobile overlays without adding a second
+ screenful of blank scroll space. The stacked rest timer needs the larger reserve. */
+body.resting #app{padding-bottom:calc(206px + var(--sab))}
+.workout-end-spacer{height:0}
@keyframes viewfade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
#app.vfade{animation:viewfade var(--med) var(--ease)}
@@ -1142,7 +1143,9 @@ h4.sec{
/* --------------------------------------------------- desktop (≥1000px) --- */
.cols{display:block}
@media (min-width:1000px){
- #app{max-width:1080px;padding-top:32px}
+ #app{max-width:1080px;padding-top:32px;padding-bottom:calc(128px + var(--sab))}
+ body.resting #app{padding-bottom:calc(250px + var(--sab))}
+ .workout-end-spacer{height:40px}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
.cols>*{min-width:0}
#app .list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
diff --git a/frontend/src/views/Workout.jsx b/frontend/src/views/Workout.jsx
index 4ac31adef..5ba2e1c97 100644
--- a/frontend/src/views/Workout.jsx
+++ b/frontend/src/views/Workout.jsx
@@ -1070,7 +1070,7 @@ function ActiveWorkout() {
{allDone ? t('Finish workout') : t('Finish workout early · {0} exercises', exDone + '/' + A.entries.length)}
</button>
})()}
- <div style={{ height: 40 }} />
+ <div className="workout-end-spacer" />
</div>
}