Phone layout: chip strips no longer scroll the page, sheets stop short of the Dynamic Island, tab bar stays at the bottom after the keyboard

- useRevealActiveChip sets the strip's own scrollLeft instead of scrollIntoView, which
  walked every scrollable ancestor and jumped the page when the strip sat above the fold;
  .chips contain overscroll on both axes.
- Every .sheet cap (and .center) carries env(safe-area-inset-top); the dead
  -webkit-overflow-scrolling is gone.
- viewport-guard: with the keyboard down and the page displaced, a text field that kept
  focus (WebKit does not blur on button taps) is blurred and the correction runs; while
  Modals has the body pinned it unpins for one scroll and pins back where it was.
  Modals blurs a page field when a sheet opens; ticking a set blurs the row's input.
- Android: shortEdges cutout mode so --sat is real, adjustResize for the keyboard.
This commit is contained in:
Duarte Santos committed 2026-09-12 13:11:17 +02:00
1 parent 413bce5bf8
commit d58a98e768
9 files changed
+140 -17

No files matched your search

+5
View File
@@ -809,6 +809,11 @@ function ActiveWorkout() {
}
const toggle = (idx, i, side) => {
// Ticking a set ends the typing in that row: drop the keyboard before the rest timer, the
// effort sheet or the next exercise moves in. WebKit keeps the input focused across the
// button tap, and a focused input with its keyboard gone is what leaves the tab bar
// mid-screen on iOS (lib/viewport-guard.js).
if (typeof document !== 'undefined') { const a = document.activeElement; if (a && (a.tagName === 'INPUT' || a.tagName === 'TEXTAREA')) a.blur?.() }
const m = modeAt(idx)
const cardioEntry = m === 'cardio'
let exJustDone = false, workoutDone = false, checked = false