fix(web): align notification icons with titles (#12202)
Co-authored-by: maria-rcks <[email protected]>
This commit is contained in:
1 parent
712f8cad32
commit
01eb4b9a87
1 file changed
+27
-27
@@ -345,35 +345,35 @@ function ToastBodyContent({
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className={cn("flex min-w-0 gap-2", !stackedActionLayout && "flex-1")}>
|
||||
{leadingIcon ? (
|
||||
<div
|
||||
className="flex h-lh w-4 shrink-0 items-center justify-center"
|
||||
data-slot="toast-icon"
|
||||
>
|
||||
{leadingIcon}
|
||||
</div>
|
||||
) : Icon ? (
|
||||
<div
|
||||
className="[&>svg]:h-lh [&>svg]:w-4 [&_svg]:pointer-events-none [&_svg]:shrink-0"
|
||||
data-slot="toast-icon"
|
||||
>
|
||||
<Icon className="in-data-[type=error]:text-destructive in-data-[type=info]:text-info in-data-[type=success]:text-success in-data-[type=warning]:text-warning in-data-[type=loading]:opacity-80" />
|
||||
</div>
|
||||
) : null}
|
||||
<div
|
||||
className={cn(
|
||||
"flex min-h-0 min-w-0 flex-1 flex-col gap-0.5",
|
||||
stackedActionLayout && "pr-5",
|
||||
)}
|
||||
>
|
||||
<div
|
||||
className={cn(
|
||||
"flex min-h-0 min-w-0 flex-col gap-0.5",
|
||||
stackedActionLayout ? "pr-5" : "flex-1",
|
||||
)}
|
||||
>
|
||||
<div className="flex min-w-0 gap-2">
|
||||
{leadingIcon ? (
|
||||
<div
|
||||
className="flex h-lh w-4 shrink-0 items-center justify-center"
|
||||
data-slot="toast-icon"
|
||||
>
|
||||
{leadingIcon}
|
||||
</div>
|
||||
) : Icon ? (
|
||||
<div
|
||||
className="[&>svg]:h-lh [&>svg]:w-4 [&_svg]:pointer-events-none [&_svg]:shrink-0"
|
||||
data-slot="toast-icon"
|
||||
>
|
||||
<Icon className="in-data-[type=error]:text-destructive in-data-[type=info]:text-info in-data-[type=success]:text-success in-data-[type=warning]:text-warning in-data-[type=loading]:opacity-80" />
|
||||
</div>
|
||||
) : null}
|
||||
<Toast.Title className="min-w-0 wrap-break-word font-medium" data-slot="toast-title" />
|
||||
<ToastDescriptionAndExpandable
|
||||
toastData={toastData}
|
||||
toastDescription={toastDescription}
|
||||
toastType={toastType}
|
||||
/>
|
||||
</div>
|
||||
<ToastDescriptionAndExpandable
|
||||
toastData={toastData}
|
||||
toastDescription={toastDescription}
|
||||
toastType={toastType}
|
||||
/>
|
||||
</div>
|
||||
{hasTrailingControls ? (
|
||||
<div
|
||||
|
||||
Reference in new issue
Block a user