mirror of
https://github.com/immich-app/static-pages.git
synced 2026-09-30 13:23:05 +08:00
fix: toast title (#541)
This commit is contained in:
@@ -76,17 +76,8 @@
|
||||
};
|
||||
|
||||
const handleClick = () => {
|
||||
for (const color of ['primary', 'secondary', 'success', 'info', 'warning', 'danger'] as const) {
|
||||
toastManager.show(
|
||||
{
|
||||
title: color,
|
||||
description,
|
||||
color,
|
||||
},
|
||||
{
|
||||
timeout,
|
||||
},
|
||||
);
|
||||
for (const { label: title, value: color } of colors) {
|
||||
toastManager.show({ title, description, color }, { timeout });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
{/if}
|
||||
</div>
|
||||
<div class="ms-1 flex grow justify-between">
|
||||
<div class="flex flex-col px-2">
|
||||
<div class="flex flex-col px-2 justify-around">
|
||||
{#if title}
|
||||
<Text fontWeight="semi-bold" class={titleStyles({ color })}>{@render resolve(title)}</Text>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user