Browse Source

fix(ui): make top PageHeader sticky on new-match screen during scroll

master
Alireza 23 hours ago
parent
commit
5be5d8815e
  1. 12
      src/app/new-match/new-match-client.tsx

12
src/app/new-match/new-match-client.tsx

@ -634,12 +634,14 @@ export default function NewMatchClient() {
<> <>
<PageBackground /> <PageBackground />
<main <main
className="-mx-[17px] flex min-h-dvh flex-col px-[18px] text-center"
>
<div
style={{ style={{
paddingTop: `${Math.max(12, top + 4)}px`, paddingTop: `${Math.max(12, top + 4)}px`,
}} }}
className="-mx-[17px] flex min-h-dvh flex-col px-[18px] text-center"
className="sticky top-0 z-30 -mx-[18px] px-[18px] pb-2 bg-[#F7F1F0]/90 backdrop-blur-md"
> >
<div className="shrink-0 mb-1">
<PageHeader profile={profile} /> <PageHeader profile={profile} />
</div> </div>
@ -721,12 +723,14 @@ export default function NewMatchClient() {
<PageBackground /> <PageBackground />
<main <main
className="-mx-[17px] flex min-h-dvh flex-col px-[18px] text-center"
>
<div
style={{ style={{
paddingTop: `${Math.max(12, top + 4)}px`, paddingTop: `${Math.max(12, top + 4)}px`,
}} }}
className="-mx-[17px] flex min-h-dvh flex-col px-[18px] text-center"
className="sticky top-0 z-30 -mx-[18px] px-[18px] pb-2 bg-[#F7F1F0]/90 backdrop-blur-md"
> >
<div className="shrink-0 mb-1">
<PageHeader profile={profile} /> <PageHeader profile={profile} />
</div> </div>

Loading…
Cancel
Save