@streamscloud/kit 0.82.3 → 0.82.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -82,13 +82,11 @@ const handleBodyClick = (event) => {
|
|
|
82
82
|
<button bind:this={activatorEl} type="button" class="toast__activator" aria-labelledby={contentId}></button>
|
|
83
83
|
{/if}
|
|
84
84
|
<div id={contentId} class="toast__body">
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
{
|
|
89
|
-
|
|
90
|
-
{/if}
|
|
91
|
-
</div>
|
|
85
|
+
{#if typeof toast.message === 'string'}
|
|
86
|
+
<div class="toast__message toast__message--text">{toast.message}</div>
|
|
87
|
+
{:else}
|
|
88
|
+
<div class="toast__message">{@render toast.message()}</div>
|
|
89
|
+
{/if}
|
|
92
90
|
{#if toast.description}
|
|
93
91
|
<div class="toast__description">{toast.description}</div>
|
|
94
92
|
{/if}
|
|
@@ -178,10 +176,14 @@ const handleBodyClick = (event) => {
|
|
|
178
176
|
font-size: var(--sc-kit--font-size--md);
|
|
179
177
|
line-height: var(--sc-kit--line-height--md);
|
|
180
178
|
font-weight: var(--sc-kit--font-weight--medium);
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
white-space:
|
|
179
|
+
}
|
|
180
|
+
.toast__message--text {
|
|
181
|
+
white-space: pre-line;
|
|
182
|
+
word-break: break-word;
|
|
183
|
+
display: -webkit-box;
|
|
184
184
|
overflow: hidden;
|
|
185
|
+
-webkit-box-orient: vertical;
|
|
186
|
+
-webkit-line-clamp: 3;
|
|
185
187
|
}
|
|
186
188
|
.toast__description {
|
|
187
189
|
font-size: var(--sc-kit--font-size--sm);
|
|
@@ -192,7 +194,7 @@ const handleBodyClick = (event) => {
|
|
|
192
194
|
display: -webkit-box;
|
|
193
195
|
overflow: hidden;
|
|
194
196
|
-webkit-box-orient: vertical;
|
|
195
|
-
-webkit-line-clamp:
|
|
197
|
+
-webkit-line-clamp: 4;
|
|
196
198
|
}
|
|
197
199
|
.toast__close {
|
|
198
200
|
--sc-kit--icon--size: 0.75rem;
|