Closed HBartolin closed 1 year ago
Did you see the "position to bottom" demo example? So something like this would work:
<button on:click={() => toast.push('Hello')}>Toast</button>
<div class="wrap">
<SvelteToast options={{ intro: { y: -192 } }} />
</div>
<style>
.wrap {
--toastContainerTop: 8rem;
--toastContainerRight: auto;
--toastContainerBottom: auto;
--toastContainerLeft: calc(50vw - 8rem);
}
</style>
Thanks, now is working.
Is it possible to adjust toast on top middle on the screen?