Skip to content

Commit 7379b14

Browse files
committed
Refactor MobileTableCard component: Adjust layout and enhance medallion display for improved visual appeal
1 parent a8162e6 commit 7379b14

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

components/ui/table/mobile/mobile-table-card.tsx

+9-4
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,22 @@ const MobileTableCard: FC<Props> = ({ category, dish, className = "" }) => {
1818
className,
1919
)}
2020
>
21-
<p className="flex flex-1 flex-col p-2 text-5xl font-bold text-green-500">
22-
{getMedallionEmoji(category === "all" ? dish.globalRanking : dish.rank)}
23-
</p>
24-
<div className="flex flex-1 flex-col p-2">
21+
<div className="mt-4 flex flex-1 flex-col p-2">
2522
<Image
2623
alt={dish.name}
2724
src={dish.photoUrl}
2825
width={192}
2926
height={192}
3027
className="mx-auto size-48"
3128
/>
29+
<div className="mt-2 flex w-full items-center justify-center">
30+
<span className="mx-auto flex size-16 items-center justify-center rounded-full border-2 border-dark-gray text-5xl font-bold text-green-500">
31+
{getMedallionEmoji(
32+
category === "all" ? dish.globalRanking : dish.rank,
33+
)}
34+
</span>
35+
</div>
36+
3237
<h3 className="mt-2 text-3xl font-semibold text-white/80">
3338
{dish.name}
3439
</h3>

0 commit comments

Comments
 (0)