Skip to content

Commit d7200b7

Browse files
committed
fix: leaderboards title layout
1 parent a3c4e04 commit d7200b7

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

app/[lang]/leaderboards/page.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ export default async function Page(props: Props): Promise<ReactElement> {
4040
<div
4141
className={clsx(
4242
'mt-4 mb-[32px] px-6 w-full',
43-
'flex flex-row items-start gap-4',
43+
'flex flex-row items-center gap-4',
4444
'max-[768px]:flex-col max-[480px]:mb-6 max-[480px]:mt-2',
4545
)}
46-
>
46+
>
4747
<H1
4848
className={clsx(
4949
'text-[44px] font-bold shrink-0 whitespace-nowrap',
@@ -61,13 +61,14 @@ export default async function Page(props: Props): Promise<ReactElement> {
6161
>
6262
<div
6363
className={clsx(
64-
'flex flex-row items-start gap-4 flex-nowrap min-w-fit',
64+
'flex flex-row items-center gap-4 flex-nowrap justify-between',
65+
'min-w-full',
6566
)}
6667
>
6768
<div className="shrink-0 min-w-[280px]">
6869
<TopTierUsers title={leaderboards.topRanked} />
6970
</div>
70-
<div className="shrink-0">
71+
<div className="shrink-0 flex items-center">
7172
<GreatFrontEnd
7273
className="max-w-[400px] shrink-0 max-[480px]:mt-2 max-[480px]:max-w-full max-[768px]:hidden"
7374
href="https://www.greatfrontend.com/questions/formats/quiz?fpr=hyo73"

styles/output.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,10 +1350,6 @@ input[type='search']::-webkit-search-decoration,
13501350
height: 22px;
13511351
}
13521352

1353-
.h-\[37px\] {
1354-
height: 37px;
1355-
}
1356-
13571353
.h-\[40px\] {
13581354
height: 40px;
13591355
}
@@ -1508,6 +1504,10 @@ input[type='search']::-webkit-search-decoration,
15081504
min-width: fit-content;
15091505
}
15101506

1507+
.min-w-full {
1508+
min-width: 100%;
1509+
}
1510+
15111511
.max-w-3xl {
15121512
max-width: 48rem;
15131513
}

0 commit comments

Comments
 (0)