Skip to content

Commit 2ac5e87

Browse files
authored
Feedback banner fixed (railwayapp#293)
1 parent 847554b commit 2ac5e87

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/components/Banner.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,16 @@ export const Banner: React.FC<PropsWithChildren<Props>> = ({
6464
return (
6565
<div
6666
css={[
67-
tw`flex items-start px-3 border rounded-md`,
67+
tw`flex items-center p-2 border rounded-md space-x-1`,
6868
containerStyles[variant],
6969
]}
7070
className="banner"
7171
{...props}
7272
>
7373
{!hideIcon && icon != null && (
74-
<Icon tw="mt-6 mr-3" icon={icon} css={[iconStyles[variant]]} />
74+
<Icon tw="mx-1" icon={icon} css={[iconStyles[variant]]} />
7575
)}
76-
77-
<>{children}</>
76+
<div>{children}</div>
7877
</div>
7978
);
8079
};

0 commit comments

Comments
 (0)