Skip to content

Build your personal knowledge base with Trilium Notes

fix(mobile): keep the page from scrolling under Chrome's toolbar

Elian Doran8bb2ff96d3e0
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index be1950f5fe..713971003e 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -72,6 +72,8 @@ body#trilium-app.backdrop-effects-disabled *::after {
html {
/* this fixes FF filter vs. position fixed bug: https://github.com/zadam/trilium/issues/233 */
height: 100vh;
+ /* Chrome on Android sizes `vh` without its toolbar, which leaves the page that much to scroll. */
+ height: 100dvh;
overscroll-behavior: none;
}