Skip to content

Build your personal knowledge base with Trilium Notes

fix(mobile): toast not respecting legacy top safe area

Elian Dorand5ebbd209437
diff --git a/apps/client/src/widgets/Toast.css b/apps/client/src/widgets/Toast.css
index 95b9f69157..d808faa155 100644
--- a/apps/client/src/widgets/Toast.css
+++ b/apps/client/src/widgets/Toast.css
@@ -5,7 +5,7 @@
align-items: center;
position: absolute;
width: 100%;
- top: calc(env(safe-area-inset-top) + 20px);
+ top: calc(var(--safe-area-inset-top, env(safe-area-inset-top)) + 20px);
pointer-events: none;
contain: none;
}