Skip to content

Commit

Permalink
fix(Alert): constraining children
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Dec 10, 2023
1 parent 3929890 commit 1ab9b12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export function Alert({ children }: AlertProps) {
return (
<div
role="alert"
className="grid grid-cols-[auto_1fr] gap-x-2 rounded-2xl border border-ui-neutral-2 bg-ui-neutral-1 p-4 text-base text-ui-neutral-5"
className="flex gap-x-2 rounded-2xl border border-ui-neutral-2 bg-ui-neutral-1 p-4 text-base text-ui-neutral-5"
>
<InformationCircleIcon className="h-6 w-6" />
{children}
<InformationCircleIcon className="h-6 w-6 flex-none" />
<div>{children}</div>
</div>
);
}

0 comments on commit 1ab9b12

Please sign in to comment.