Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(toast): let the theme dress the toast again
Elian Doran9f1ef023ccd9
diff --git a/apps/client/src/widgets/Toast.css b/apps/client/src/widgets/Toast.cssindex fc5c36060b..37e18e10f6 100644--- a/apps/client/src/widgets/Toast.css+++ b/apps/client/src/widgets/Toast.css@@ -13,12 +13,17 @@contain: none;}+/* Fallback colours for a theme that dresses no toast of its own. Kept at this specificity so a theme's+ own `#toast-container .toast` still wins — the layout below deliberately sits a level higher. */+.toast {+ --bs-toast-bg: var(--accented-background-color);+ --bs-toast-color: var(--main-text-color);+}+/* Scoped to the container so the `display` beats Bootstrap's `.toast:not(.show) { display: none }` —the toast is rendered by Preact and never carries Bootstrap's `show` class, so without this thelayout comes from whichever theme happens to define it, and toasts vanish under every other one. */#toast-container .toast {- --bs-toast-bg: var(--accented-background-color);- --bs-toast-color: var(--main-text-color);display: flex;flex-direction: column;z-index: 9999999999 !important;