Fix mobile Today handoff clearance (#1202)
All checks were successful
CI / lint (pull_request) Successful in 3m27s
CI / build-release (pull_request) Successful in 7s
CI / browser-journey (pull_request) Successful in 4m37s
CI / release-candidate (pull_request) Has been skipped

This commit is contained in:
timmy 2026-08-21 00:42:07 +00:00
parent ecc79ce50f
commit f11fc17a2c
2 changed files with 10 additions and 0 deletions

View File

@ -1191,6 +1191,7 @@ textarea { resize: vertical; min-height: 120px; }
@media (max-width: 600px) { @media (max-width: 600px) {
body { padding-bottom:calc(66px + env(safe-area-inset-bottom)); } body { padding-bottom:calc(66px + env(safe-area-inset-bottom)); }
body.mobile-today-active { padding-bottom:calc(var(--mobile-today-clearance, 166px) + env(safe-area-inset-bottom)); } body.mobile-today-active { padding-bottom:calc(var(--mobile-today-clearance, 166px) + env(safe-area-inset-bottom)); }
body:has(.mobile-today-hud:not([hidden]):not([data-overlay-hidden="true"])) { padding-bottom:calc(var(--mobile-today-clearance, 166px) + env(safe-area-inset-bottom)); }
header { min-height:56px; max-height:64px; padding:6px 10px; align-items:center; gap:8px; background:rgba(11,21,38,.98); } header { min-height:56px; max-height:64px; padding:6px 10px; align-items:center; gap:8px; background:rgba(11,21,38,.98); }
.app-brand .muted, #clock { display:none; } .app-brand .muted, #clock { display:none; }
.app-live-status { margin-left:auto; } .app-live-status { margin-left:auto; }

View File

@ -129,6 +129,15 @@ process.stdout.write(JSON.stringify(values));
assert result == {"--mobile-today-clearance": "168px"} assert result == {"--mobile-today-clearance": "168px"}
def test_visible_mobile_today_hud_reserves_measured_scroll_clearance_without_timer_class():
css = (FRONTEND / "dashboard.css").read_text()
assert (
'body:has(.mobile-today-hud:not([hidden]):not([data-overlay-hidden="true"])) '
"{ padding-bottom:calc(var(--mobile-today-clearance, 166px)"
) in css
def test_mobile_command_bar_keeps_primary_actions_visible_and_secondary_actions_modal(): def test_mobile_command_bar_keeps_primary_actions_visible_and_secondary_actions_modal():
html = (FRONTEND / "index.html").read_text() html = (FRONTEND / "index.html").read_text()
css = (FRONTEND / "dashboard.css").read_text() css = (FRONTEND / "dashboard.css").read_text()