Skip to content

Commit 6bb8abe

Browse files
committed
chore: remove comment & refactor classes
1 parent 32e0ab5 commit 6bb8abe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/BannerGrid/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,15 @@ export const BannerGrid = ({ children }: ChildOnlyProp) => {
3939
export const BannerGridCell = ({ children }: ChildOnlyProp) => {
4040
return (
4141
<Flex
42-
// TODO: refactor className to make it more readable
4342
className={cn(
4443
"px-0 py-8 md:px-12",
4544
"flex-col",
4645
"border-t border-t-search-background",
4746
"md:border-l md:border-l-search-background",
4847
"first:border-t-0",
49-
"md:[&:nth-child(-n+2)]:border-t-0 md:[&:nth-child(2n+1)]:border-l-0",
5048
"lg:[&:first-child]:border-l-0",
51-
"lg:[&:nth-child(-n+2)]:border-t lg:[&:nth-child(-n+2)]:border-t-search-background",
52-
"lg:[&:nth-child(2n+1)]:border-l lg:[&:nth-child(2n+1)]:border-l-search-background",
49+
"md:[&:nth-child(-n+2)]:border-t-0 lg:[&:nth-child(-n+2)]:border-t lg:[&:nth-child(-n+2)]:border-t-search-background",
50+
"md:[&:nth-child(2n+1)]:border-l-0 lg:[&:nth-child(2n+1)]:border-l lg:[&:nth-child(2n+1)]:border-l-search-background",
5351
"lg:[&:nth-child(-n+3)]:justify-start lg:[&:nth-child(-n+3)]:border-t-0 lg:[&:nth-child(-n+3)]:pt-0",
5452
"lg:[&:nth-child(3n+1)]:border-l-0 lg:[&:nth-child(3n+1)]:ps-0",
5553
"lg:[&:nth-child(n+4)]:justify-start lg:[&:nth-child(n+4)]:pb-0"

0 commit comments

Comments
 (0)