Skip to content

Commit e3252cd

Browse files
committed
align ranking icons and fix styles to display contributors avatar
1 parent 702e675 commit e3252cd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/TranslationLeaderboard.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ const TranslationLeaderboard = ({
131131
className="text-foreground hover:rounded-base hover:bg-accent/50 mb-[1px] w-full items-center justify-between px-4 py-2 shadow-sm hover:shadow-md"
132132
>
133133
<Flex>
134-
{emoji ? (
135-
<div className="w-10">
134+
<div className="flex w-10 items-center">
135+
{emoji ? (
136136
<Emoji className="me-4 text-[2rem]" text={emoji} />
137-
</div>
138-
) : (
139-
<div className="w-10 opacity-40">{idx + 1}</div>
140-
)}
137+
) : (
138+
<span className="opacity-40">{idx + 1}</span>
139+
)}
140+
</div>
141141
<Flex className="me-8 flex-row items-center break-words">
142-
<div className="s:block relative me-4 hidden h-[30px] w-[30px] sm:h-10 sm:w-10">
142+
<div className="relative me-4 hidden h-[30px] w-[30px] sm:block sm:h-10 sm:w-10">
143143
<TwImage
144144
fill
145145
className="rounded-full object-cover"

0 commit comments

Comments
 (0)