Open sodapopcan opened 6 months ago
Will do! Sonner has this option and I would like to have it as well.
@srcrip do you need a PR for this or are you already working on it?
Hi @sergchernata,
I can knock it out quickly, but I'm working on a few higher priority issues that are more complex first so if you would like to make a PR it will be appreciated too!
I ended up just wrapping the LiveToast
component into a div
and positioning that in the center.
<div class="absolute bottom-0 left-1/2 -translate-x-1/2">
<LiveToast.toast_group flash={@flash} connected={assigns[:socket] != nil} toast_class_fn={&Front.Helpers.toast_class_fn/1} />
</div>
No worries, I will still make the change requested I've just been caught up with a few other things + thinking about one big change to the lib itself thats taking up my time.
My current toasts show up in the bottom centre. Obviously this isn't super desirable if you have multiple toasts, though my project doesn't need them (I'm more after the auto-hiding).