Skip to content

Build your personal knowledge base with Trilium Notes

fix z-index of notification

azivner0d3bc22d7351
diff --git a/src/public/javascripts/services/info.js b/src/public/javascripts/services/info.js
index eca5e7809a..c3eb76f8fd 100644
--- a/src/public/javascripts/services/info.js
+++ b/src/public/javascripts/services/info.js
@@ -28,11 +28,9 @@ function showError(message, delay = 10000) {
function getNotifySettings(type, delay) {
return {
- element: (glob.activeDialog && glob.activeDialog.hasClass("show"))
- ? glob.activeDialog.find('.modal-header')[0]
- : 'body',
+ element: 'body',
type: type,
- z_index: 1031,
+ z_index: 90000,
placement: {
from: "top",
align: "center"
diff --git a/src/public/javascripts/services/protected_session.js b/src/public/javascripts/services/protected_session.js
index 40c421fbd4..e4f8244744 100644
--- a/src/public/javascripts/services/protected_session.js
+++ b/src/public/javascripts/services/protected_session.js
@@ -57,7 +57,7 @@ async function setupProtectedSession() {
const response = await enterProtectedSessionOnServer(password);
if (!response.success) {
- infoService.showError("Wrong password.");
+ infoService.showError("Wrong password.", 3000);
return;
}