From 7fd4e0e9bb1da327e284fa1aa0af99c744fde1cd Mon Sep 17 00:00:00 2001 From: PR #6029 Reviewer Date: Tue, 20 Oct 2026 11:39:51 +0100 Subject: [PATCH] fix(ui): harden iOS safe-area and viewport regressions --- static/css/17-research.css | 9 +- static/index.html | 7 - static/js/init.js | 2 - static/js/windowResize.js | 5 +- tests/e2e/ios-layout.config.cjs | 58 ++++++ .../e2e/ios-layout/postmerge-layout.spec.cjs | 181 ++++++++++++++++++ 6 files changed, 248 insertions(+), 14 deletions(-) create mode 100644 tests/e2e/ios-layout.config.cjs create mode 100644 tests/e2e/ios-layout/postmerge-layout.spec.cjs diff --git a/static/css/17-research.css b/static/css/17-research.css index c4de5cb75..2c43aa2c8 100644 --- a/static/css/17-research.css +++ b/static/css/17-research.css @@ -2690,11 +2690,14 @@ body.theme-frosted .modal { max-height: 95dvh !important; } + /* Notes and Documents must respect the same viewport and safe-area + top as other mobile full-height sheets. Keep these authoritative rules + consistent with 05-documents.css and 14-email.css. */ body.doc-view .doc-editor-pane, body.notes-view .notes-pane { - inset: auto 0 0 !important; - height: 95dvh !important; - max-height: 95dvh !important; + inset: var(--sheet-top) 0 0 !important; + height: calc(var(--app-height) - var(--sheet-top)) !important; + max-height: calc(var(--app-height) - var(--sheet-top)) !important; } } diff --git a/static/index.html b/static/index.html index 89836d27a..5fc386a5c 100644 --- a/static/index.html +++ b/static/index.html @@ -16,13 +16,6 @@