fix: tighten mobile workout bottom scroll
This commit is contained in:
1 parent
acff80348f
commit
21049e9328
2 files changed
+9
-6
No files matched your search
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user