I´m using sweetalert2 library to show basic alert messages, but there are some messages more extend than others.
It's possible to set the witdh of the alert container to auto, so the message fix in one line?
As default behaviour the width is set to 360px I think, but I need a workaround to make it auto... hope somebody can help me... thanks
PD: If matters, I'm using Symfony 4.4. The default config is:
const Toast = Swal.mixin({
toast: true,
position: 'top',
showConfirmButton: false,
timer: 3000,
timerProgressBar: true,
});
and the fire event in the template:
<script>
{% for type, msgs in app.session.flashBag.all() %}
{% for msg in msgs %}
Toast.fire({
icon: '{{ type }}',
title: '{{ msg }}'
});
{% endfor %}
{% endfor %}
</script>


