Skip to content

Build your personal knowledge base with Trilium Notes

fix(toast): space out stacked toasts under every theme

Elian Doran14823f344c7e
diff --git a/apps/client/src/stylesheets/theme-next/base.css b/apps/client/src/stylesheets/theme-next/base.css
index 15cb0b59bf..1e6fde3be1 100644
--- a/apps/client/src/stylesheets/theme-next/base.css
+++ b/apps/client/src/stylesheets/theme-next/base.css
@@ -557,11 +557,6 @@ li.dropdown-item a.dropdown-item-button:focus-visible {
* TOASTS
*/
- #toast-container {
- /* The vertical gap between toasts */
- gap: 10px;
-}
-
#toast-container .toast {
--bs-toast-padding-x: 12px;
--bs-border-radius: 8px;
diff --git a/apps/client/src/widgets/Toast.css b/apps/client/src/widgets/Toast.css
index 0471718890..fc5c36060b 100644
--- a/apps/client/src/widgets/Toast.css
+++ b/apps/client/src/widgets/Toast.css
@@ -1,6 +1,9 @@
#toast-container {
display: flex;
flex-direction: column;
+ /* The vertical gap between stacked toasts. Bootstrap's own spacing rule targets `.toast-container`,
+ which this element isn't, so without this stacked toasts touch. */
+ gap: 10px;
justify-content: center;
align-items: center;
position: absolute;