Fixes two issues found during manual verification: - fragments/toast.html was missing class="toast-container" on the swapped-in element, so the container lost its fixed-position styling after the first swap. - htmx:oobAfterSwap's event.detail.target is the *old* element that just got replaced (outerHTML oob-swaps detach it), so the dismiss timer must look up the live #toast-container by id instead of trusting that stale reference. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
4 lines
138 B
HTML
4 lines
138 B
HTML
<div id="toast-container" class="toast-container" hx-swap-oob="true">
|
|
<div class="toast toast-{{ level }}">{{ message }}</div>
|
|
</div>
|