Skip to content

Commit e07f178

Browse files
committed
refactor: use width instead of max-width
1 parent f9b245e commit e07f178

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/cards/challenge/Challenge.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function ChallengeCard({ data, community, isCourseEnd }: Challeng
3131

3232
return (
3333
<div className="w-full flex flex-col sm:flex-row md:flex-col lg:flex-row border-solid border border-gray-200 bg-gray-50 rounded-3xl mb-5 group text-gray-700">
34-
<div className="border-solid border -m-px border-gray-200 bg-white rounded-3xl sm:p-8 sm:pb-6 p-6 sm:max-w-[60%] sm:min-w-[60%] md:max-w-none md:min-w-none lg:max-w-[60%] lg:min-w-[60%]">
34+
<div className="border-solid border -m-px border-gray-200 bg-white rounded-3xl sm:p-8 sm:pb-6 p-6 sm:w-2/3 md:w-auto lg:w-2/3">
3535
<div className="flex flex-col mb-1">
3636
<div className="lg:pr-20">
3737
{expiresAt && (
@@ -58,7 +58,7 @@ export default function ChallengeCard({ data, community, isCourseEnd }: Challeng
5858
</div>
5959
</div>
6060
</div>
61-
<div className="p-6 lg:mx-auto">
61+
<div className="p-6 lg:flex-1">
6262
<div className="mx-auto relative rounded-full mb-5 w-[147px] h-[184px]">
6363
<Image src={data?.certificateData?.icon} alt="achievement" fill priority />
6464
</div>

0 commit comments

Comments
 (0)