feat: improve multiple toasts on the same page from different sources

This commit is contained in:
Herculino Trotta
2024-11-30 00:32:23 -03:00
parent 1f4a66560a
commit 73678aacab
3 changed files with 28 additions and 24 deletions

View File

@@ -1,3 +1,6 @@
<div id="toasts" hx-get="{% url 'toasts' %}"
hx-trigger="load, toast from:window, toasts from:window">
<div id="toasts">
<div class="toast-container position-fixed bottom-0 end-0 p-3" hx-trigger="load, updated from:window" hx-get="{% url 'toasts' %}" hx-swap="beforeend">
</div>
</div>