Fixed styling of toasts.

This commit is contained in:
Jan Böhmer 2022-07-24 18:19:57 +02:00
parent 582f8e4c5f
commit 29fb59c76e

View file

@ -13,9 +13,7 @@
<i class="fas fa-fw {{ flash_symbol }} me-2"></i>
<strong class="me-auto">{{ flash_title|trans }}</strong>
<small class="{% if "text-white" in flash_bg %}text-white{% else %}text-muted{% endif %}">{{ "now" | format_datetime("short", "short") }}</small>
<button type="button" class="ms-2 mb-1 close" data-dismiss="toast" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<button type="button" class="ms-2 mb-1 btn-close {% if "text-white" in flash_bg %}btn-close-white{% endif %}" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body {{ flash_bg }}">
{{ message | trans }}