diff --git a/frontend/src/lib/components/Toast.svelte b/frontend/src/lib/components/Toast.svelte index 07846291c4..4e963eea6e 100644 --- a/frontend/src/lib/components/Toast.svelte +++ b/frontend/src/lib/components/Toast.svelte @@ -36,21 +36,23 @@ }) } } + + export type ToastType = AlertType
state && (state.hover = true)} - onmouseleave={() => state && (state.hover = false)} + onmouseenter={() => _state && (_state.hover = true)} + onmouseleave={() => _state && (_state.hover = false)} > -
-
-
- {#if error} - - {:else} - - {/if} -
-
-

{@html processMessage(message)}

- {#if errorMessage} -

- {errorMessage} -

- {/if} -
- -
- -
+
+
+
-
+
+

+ {@html processMessage(displayMessage)} + {#if isLongMessage && !showMore} + + {/if} +

+ {#if errorMessage} +

+ {errorMessage} +

+ {/if} +
+ +
{#each actions as action, index (index)} {/each}
+ +
+ +
diff --git a/frontend/src/lib/components/common/alert/Alert.svelte b/frontend/src/lib/components/common/alert/Alert.svelte index 3a1361b2ff..7c03de5dca 100644 --- a/frontend/src/lib/components/common/alert/Alert.svelte +++ b/frontend/src/lib/components/common/alert/Alert.svelte @@ -1,14 +1,7 @@