Skip to content

Commit bacad2c

Browse files
authored
Merge pull request #1218 from dacadeorg/fix/mobile-community-card
fix: community card in the home page
2 parents 0d97090 + c621ab8 commit bacad2c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/cards/community/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ export default function CommunityCard({ showRewards = true, community }: Communi
5959
}, [colors]);
6060

6161
return (
62-
<ThemeWrapper colors={community.colors}>
62+
<ThemeWrapper colors={community.colors} className="mt-2 md:mt-0">
6363
<div onClick={() => router.push(path)} className="block h-full hover:cursor-pointer">
64-
<div className="flex flex-col h-full p-6 pb-3 space-y-5 divide-y-2 group bg-theme-primary text-theme-text divide-dotted divide-theme-accent">
64+
<div className="flex flex-col h-full p-6 space-y-5 divide-y-2 group bg-theme-primary text-theme-text divide-dotted divide-theme-accent">
6565
<div className="flex-grow">
6666
<div className="flex flex-col justify-between space-y-5 sm:flex-row lg:flex-col 2xl:flex-row">
6767
<div className="text-.5xl md:text-2xl max-w-sm min-h-2xs md:min-h-3xs lg:min-h-2xs xl:min-h-2xs font-medium pb-5">

src/components/sections/homepage/Communities.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function CommunitiesSection({ communities }: { communities: Commu
3131
<div className="message-bubble">{t("page.index.communities.subtitle")}</div>
3232
</div>
3333
</div>
34-
<div className="mt-7 grid grid-cols-1 lg:grid-cols-2 gap-x-5 gap-y-0.5 lg:gap-y-5 md:gap-y-5 justify-stretch-items">
34+
<div className="mt-5 md:mt-7 grid grid-cols-1 lg:grid-cols-2 gap-x-5 gap-y-0.5 lg:gap-y-5 md:gap-y-5 justify-stretch-items">
3535
{communities?.map((community) => (
3636
<CommunityCard key={community.id} community={community} />
3737
))}

0 commit comments

Comments
 (0)