kbrgl / svelte-french-toast

🍞🥂 Buttery smooth toast notifications for Svelte
https://svelte-french-toast.vercel.app/
MIT License
809 stars 28 forks source link

Can I place it to the vertical center of the page? #63

Closed zed-wong closed 5 months ago

zed-wong commented 6 months ago

I've seen there're only top and bottom positions. Can we place it to the center of the page? Top and bottom doesn't work really well in my case.

kbrgl commented 5 months ago

Yep—you can do any position! See the following: https://github.com/kbrgl/svelte-french-toast/blob/9a3aef01b495bf01380edfea11ca3f108ff526ed/src/lib/core/types.ts#L11

zed-wong commented 5 months ago

Yep—you can do any position! See the following:

https://github.com/kbrgl/svelte-french-toast/blob/9a3aef01b495bf01380edfea11ca3f108ff526ed/src/lib/core/types.ts#L11

But looks like I can't do vertically center and horizontally center at the same time