chore(Toast): improve progress bar

This commit is contained in:
Benjamin Canac
2024-04-12 18:37:32 +02:00
parent 239e0a5ac1
commit cbd58ee707
2 changed files with 28 additions and 28 deletions

View File

@@ -7,13 +7,13 @@ export default (config: { colors: string[] }) => ({
icon: 'shrink-0 size-5',
avatar: 'shrink-0',
actions: 'flex gap-1.5 shrink-0',
progress: 'absolute inset-0 border-b-2 z-[-1]',
close: 'p-1'
progress: 'absolute inset-x-0 bottom-0 h-1 z-[-1]',
close: 'p-0'
},
variants: {
color: Object.fromEntries(config.colors.map((color: string) => [color, {
icon: `text-${color}-500 dark:text-${color}-400`,
progress: `border-${color}-500 dark:border-${color}-400`
progress: `bg-${color}-500 dark:bg-${color}-400`
}])),
multiline: {
true: {