Skip to content

Build your personal knowledge base with Trilium Notes

fix(mobile): modals not considering top safe area on desktop

Elian Doranae7f2f3ef22b
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index d96edca437..eb50b98f7d 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -145,6 +145,10 @@ body.desktop {
padding-bottom: env(safe-area-inset-bottom);
}
}
+
+ .modal .modal-dialog {
+ margin-top: calc(env(safe-area-inset-top) + var(--bs-modal-margin));
+ }
}
a {