mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-11 16:39:15 +08:00
fix: Fix colored toast background variant selection
This commit is contained in:
parent
833fa467ba
commit
f4f6e4fdeb
@ -371,7 +371,7 @@ function toast(props: ToastProps) {
|
|||||||
toast: cn(
|
toast: cn(
|
||||||
'flex rounded-xs p-4 bg-background border-border border-[0.5px] shadow-lg items-center',
|
'flex rounded-xs p-4 bg-background border-border border-[0.5px] shadow-lg items-center',
|
||||||
props.button ? 'gap-3' : 'gap-4',
|
props.button ? 'gap-3' : 'gap-4',
|
||||||
props.colored && type !== 'custom' && toastBgColorVariants({ type }),
|
props.colored && toastBgColorVariants({ type: props.type }),
|
||||||
props.classNames?.toast
|
props.classNames?.toast
|
||||||
),
|
),
|
||||||
content: cn('flex flex-col', props.description && (props.button ? 'gap-1' : 'gap-2')),
|
content: cn('flex flex-col', props.description && (props.button ? 'gap-1' : 'gap-2')),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user