Skip to content

Commit 4b639b1

Browse files
committed
fix: refactor spacings to gaps
1 parent 4a92a2e commit 4b639b1

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/components/Hero/HubHero/index.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ const HubHero = ({
3939
}}
4040
/>
4141
<Stack
42-
// spacing :: used space-y as considering it to be column
4342
className={cn(
44-
"gap-0 space-y-4 p-4 lg:p-8",
43+
"gap-4 p-4 lg:p-8",
4544
"text-center xl:text-start",
4645
"xl:rounded",
4746
"xl:bg-hub-hero-content-bg",
@@ -58,10 +57,8 @@ const HubHero = ({
5857
</h1>
5958
) : null}
6059
<Stack
61-
// TODO: Spacings on @chakra Stack behaves differently on different screen sizes
62-
// spacing :: used space-y as considering it to be column
6360
// --eth-sizes-container-md: 768px ==> tailwind max-w-3xl
64-
className="max-w-3xl gap-0 space-y-2 self-center md:space-y-1"
61+
className="max-w-3xl gap-2 self-center md:gap-1"
6562
>
6663
{title ? (
6764
<h2 className="text-4xl lg:text-5xl">{header}</h2>
@@ -75,8 +72,7 @@ const HubHero = ({
7572
className={cn(
7673
"h-fit flex-col gap-0 md:flex-row",
7774
"md:justify-center xl:justify-start",
78-
// spacing :: used space-y & x as considering it to be sm:column md:row
79-
"space-y-4 md:space-x-4 md:space-y-0"
75+
"gap-4"
8076
)}
8177
>
8278
{buttons?.map((button, idx) => {

0 commit comments

Comments
 (0)