Skip to content

Commit 418bff3

Browse files
committed
fix: keep sponsor logo visible while scrolling modal content
1 parent 7ea8f7e commit 418bff3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/SponsorCard.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const { t } = useI18n(Astro.url.pathname)
4949
description && (
5050
<div class="modal-content hidden">
5151
<div class="body">
52-
<div class="mb-5 flex justify-center">
52+
<div class="relative mb-5 flex justify-center">
5353
<div>
5454
<div class="mb-4 flex items-center gap-4">
5555
<div class="aspect-square h-20 w-20 shrink-0 overflow-hidden rounded-lg bg-neutral-50 p-2 md:hidden">
@@ -59,7 +59,7 @@ const { t } = useI18n(Astro.url.pathname)
5959
</div>
6060
<Markdown content={description} />
6161
</div>
62-
<div class="hidden aspect-square h-48 w-48 shrink-0 overflow-hidden rounded-lg bg-neutral-50 p-2 md:block">
62+
<div class="sticky top-0 hidden aspect-square h-48 w-48 shrink-0 overflow-hidden rounded-lg bg-neutral-50 p-2 md:block">
6363
<img class="h-full w-full object-contain" src={`./img/partners/${img}`} alt={name} />
6464
</div>
6565
</div>

0 commit comments

Comments
 (0)