Skip to content

Commit f46697e

Browse files
authored
Make height auto and add minHeight for toast item (#11)
1 parent f2cf0ca commit f46697e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ToastItem.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ $: if (prevProgress !== item.progress) {
2222
<style>
2323
._toastItem {
2424
width: var(--toastWidth,16rem);
25-
height: var(--toastHeight,3.5rem);
25+
height: var(--toastHeight,auto);
26+
min-height: var(--toastMinHeight,3.5rem);
2627
margin: var(--toastMargin,0 0 0.5rem 0);
2728
background: var(--toastBackground,rgba(66,66,66,0.9));
2829
color: var(--toastColor,#FFF);

0 commit comments

Comments
 (0)