Skip to content

Commit 00ef44f

Browse files
committed
Remove title feature - use rich HTML instead
1 parent f46697e commit 00ef44f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/ToastItem.svelte

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $: if (prevProgress !== item.progress) {
2222
<style>
2323
._toastItem {
2424
width: var(--toastWidth,16rem);
25-
height: var(--toastHeight,auto);
25+
height: var(--toastHeight,auto);
2626
min-height: var(--toastMinHeight,3.5rem);
2727
margin: var(--toastMargin,0 0 0.5rem 0);
2828
background: var(--toastBackground,rgba(66,66,66,0.9));
@@ -36,9 +36,6 @@ $: if (prevProgress !== item.progress) {
3636
will-change: transform,opacity;
3737
-webkit-tap-highlight-color: transparent;
3838
}
39-
._toastTitle {
40-
font-weight: bold;
41-
}
4239
._toastMsg {
4340
font: var(--toastFont);
4441
flex: 1 1 0%;
@@ -80,15 +77,10 @@ $: if (prevProgress !== item.progress) {
8077

8178
<div class="_toastItem">
8279
<div class="_toastMsg">
83-
{#if item.title}
84-
<div class="_toastTitle">{item.title}</div>
85-
{/if}
8680
{@html item.msg}
8781
</div>
88-
8982
{#if item.dismissable}
9083
<div class="_toastBtn" role="button" tabindex="-1" on:click={() => toast.pop(item.id)}>✕</div>
9184
{/if}
92-
9385
<progress class="_toastBar" value={$progress}></progress>
9486
</div>

0 commit comments

Comments
 (0)