From ba84cd03909d81fa6012b34aa6c2c6ae1ee8d206 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 28 Dec 2024 11:57:13 +0200 Subject: [PATCH] feat(mobile): improve layout on iOS --- src/public/stylesheets/style.css | 5 +++++ src/views/mobile.ejs | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index 8333d7041..b51222599 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -27,6 +27,7 @@ html { /* this fixes FF filter vs. position fixed bug: https://github.com/zadam/trilium/issues/233 */ height: 100%; + overscroll-behavior: none; } body { @@ -54,6 +55,10 @@ body.mobile.context-menu-shown * { -webkit-user-select: none !important; } +#root-widget { + padding-top: env(safe-area-inset-top); +} + a { text-decoration: none; } diff --git a/src/views/mobile.ejs b/src/views/mobile.ejs index aa401bd24..42ac1cceb 100644 --- a/src/views/mobile.ejs +++ b/src/views/mobile.ejs @@ -3,7 +3,9 @@ - + + + TriliumNext Notes