diff --git a/CHANGELOG.md b/CHANGELOG.md index 7315ba3f..d5146eb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ These changes are awaiting release: +## Changed + +- Move notifications to its own component. + ## Fixed - SpinnerTiny: Use svg instead of the css border trick to create the spinner fixing it looking more like a horseshoe than a circle on different browser scales (also added animation on the svg circle). diff --git a/src/lib/notifications.svelte b/src/lib/notifications.svelte new file mode 100644 index 00000000..546ac0b6 --- /dev/null +++ b/src/lib/notifications.svelte @@ -0,0 +1,112 @@ + + +
+ {#each store.notifications as n} +
+ {#if n.type === "loading"} + + {/if} + + + {@html n.text} + +
+ {/each} +
+ + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 4183b260..1339cb54 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,8 +1,5 @@