Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: scroll top when clicking ticket in firefox

Francesco Sansalvadore865ace9eeba2
diff --git a/apps/www/components/LaunchWeek/Ticket/TicketsGrid.tsx b/apps/www/components/LaunchWeek/Ticket/TicketsGrid.tsx
index 4377b09b8c8..98dd1f204e3 100644
--- a/apps/www/components/LaunchWeek/Ticket/TicketsGrid.tsx
+++ b/apps/www/components/LaunchWeek/Ticket/TicketsGrid.tsx
@@ -35,7 +35,11 @@ export default function TicketsGrid({ loadedUsers, isLoading, pageCount, offset
const recalculatedDelay = i >= pageCount * 2 ? (i - pageCount * (offset - 1)) / 15 : i / 15
return (
- <Link href={`/launch-week/tickets/${user.username}`} key={`${user.username}-000${i}`}>
+ <Link
+ href={`/launch-week/tickets/${user.username}`}
+ key={`${user.username}-000${i}`}
+ onClick={() => window.scrollTo(0, 0)}
+ >
<motion.a
className="relative w-full p-[1px] rounded-lg sm:rounded-xl overflow-hidden hover:cursor-pointer bg-gradient-to-b from-[#ffffff60] to-[#ffffff10]"
initial={{ opacity: 0, y: 20, x: isOddRow ? 30 : -30 }}