Skip to content

Commit 4df1f5d

Browse files
committed
Update toastMsg default padding
1 parent 1bf0a2c commit 4df1f5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ToastItem.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ $: if (prevProgress !== item.progress) {
3737
-webkit-tap-highlight-color: transparent;
3838
}
3939
._toastMsg {
40+
padding: var(--toastMsgPadding,0.75rem 0.5rem);
4041
flex: 1 1 0%;
41-
padding: var(--toastMsgPadding,0.5rem);
4242
}
4343
._toastBtn {
4444
width: 2rem;
@@ -78,8 +78,10 @@ $: if (prevProgress !== item.progress) {
7878
<div class="_toastMsg">
7979
{@html item.msg}
8080
</div>
81+
8182
{#if item.dismissable}
8283
<div class="_toastBtn" role="button" tabindex="-1" on:click={() => toast.pop(item.id)}>✕</div>
8384
{/if}
85+
8486
<progress class="_toastBar" value={$progress}></progress>
8587
</div>

0 commit comments

Comments
 (0)