Fix mobile Today handoff clearance (#1202)
This commit is contained in:
parent
ecc79ce50f
commit
f11fc17a2c
|
|
@ -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; }
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user