diff options
Diffstat (limited to 'view')
-rw-r--r-- | view/js/main.js | 2 | ||||
-rw-r--r-- | view/tpl/hdr.tpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/view/js/main.js b/view/js/main.js index 8904f8b4c..5d273ee39 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1823,7 +1823,7 @@ function toast(string, severity) { let toast = document.createElement('div'); toast.innerHTML = '<div class="d-flex"><div class="toast-body">' + string + '</div><button type="button" class="btn-close me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button></div>'; - toast.classList.add('toast', 'p-2', 'm-3', 'bg-' + severity + '-subtle', 'text-' + severity + '-emphasis', 'border-' + severity); + toast.classList.add('toast', 'p-2', 'bg-' + severity + '-subtle', 'text-' + severity + '-emphasis', 'border-' + severity); container.prepend(toast); let toastInstance = bootstrap.Toast.getOrCreateInstance(toast); diff --git a/view/tpl/hdr.tpl b/view/tpl/hdr.tpl index ba63830eb..f4f346fb7 100644 --- a/view/tpl/hdr.tpl +++ b/view/tpl/hdr.tpl @@ -1 +1 @@ -<div id="toast-container" class="d-flex position-fixed top-0 end-0"></div> +<div id="toast-container" class="vstack gap-3 m-3 position-fixed top-0 end-0"></div> |