We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bf0a2c commit 4df1f5dCopy full SHA for 4df1f5d
src/ToastItem.svelte
@@ -37,8 +37,8 @@ $: if (prevProgress !== item.progress) {
37
-webkit-tap-highlight-color: transparent;
38
}
39
._toastMsg {
40
+ padding: var(--toastMsgPadding,0.75rem 0.5rem);
41
flex: 1 1 0%;
- padding: var(--toastMsgPadding,0.5rem);
42
43
._toastBtn {
44
width: 2rem;
@@ -78,8 +78,10 @@ $: if (prevProgress !== item.progress) {
78
<div class="_toastMsg">
79
{@html item.msg}
80
</div>
81
+
82
{#if item.dismissable}
83
<div class="_toastBtn" role="button" tabindex="-1" on:click={() => toast.pop(item.id)}>✕</div>
84
{/if}
85
86
<progress class="_toastBar" value={$progress}></progress>
87
0 commit comments