File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
apps/webapp/app/components/primitives Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -69,21 +69,26 @@ export function ToastUI({
6969 width : toastWidth ,
7070 } }
7171 >
72- < div className = "flex w-full items-start gap-2 rounded-lg p-3" >
72+ < div
73+ className = { cn ( "flex w-full gap-2 rounded-lg p-3" , title ? "items-start" : "items-center" ) }
74+ >
7375 { variant === "success" ? (
74- < CheckCircleIcon className = "mt-1 size-4 min-w-4 text-success" />
76+ < CheckCircleIcon className = { cn ( " size-4 min-w-4 text-success", title && "mt-1" ) } />
7577 ) : (
76- < ExclamationCircleIcon className = "mt-1 size-4 min-w-4 text-error" />
78+ < ExclamationCircleIcon className = { cn ( " size-4 min-w-4 text-error", title && "mt-1" ) } />
7779 ) }
7880 < div className = "flex flex-col" >
7981 { title && < Header2 className = "pt-0" > { title } </ Header2 > }
80- < Paragraph variant = "small/dimmed" className = "pb-1 pt-0.5" >
82+ < Paragraph
83+ variant = { title ? "small/dimmed" : "small/bright" }
84+ className = { title ? "pb-1 pt-0.5" : "" }
85+ >
8186 { message }
8287 </ Paragraph >
8388 < Action action = { action } toastId = { t } className = "my-2" />
8489 </ div >
8590 < button
86- className = "hover:bg-midnight-800 - mr-1 -mt-1 ms-auto rounded p-2 text-text-dimmed transition hover:text-text-bright"
91+ className = { cn ( "- mr-1 ms-auto rounded p-2 text-text-dimmed transition hover:text-text-bright", title && "-mt-1" ) }
8792 onClick = { ( ) => toast . dismiss ( t ) }
8893 >
8994 < XMarkIcon className = "size-4" />
You can’t perform that action at this time.
0 commit comments