The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
use window.scrollTo
Francesco Sansalvadored8219e17df73
diff --git a/apps/www/components/LaunchWeek/8/Releases/LWAnnouncement.tsx b/apps/www/components/LaunchWeek/8/Releases/LWAnnouncement.tsxindex 2da75e404b5..d681b5e268a 100644--- a/apps/www/components/LaunchWeek/8/Releases/LWAnnouncement.tsx+++ b/apps/www/components/LaunchWeek/8/Releases/LWAnnouncement.tsx@@ -12,9 +12,7 @@ const LWAnnouncement = ({title?: stringisLaunchWeekPage?: boolean}) => {- if (typeof document === 'undefined') return nullconst [_pre, _d1, d2, _d3, _d4, _d5] = days- const today = document.getElementById('today')const announcement = (<>@@ -61,10 +59,11 @@ const LWAnnouncement = ({</>)- const handleClick = (e: any) => {- e?.preventDefault()+ const handleClick = () => {+ if (typeof document === 'undefined') return null+ const today = document.getElementById('today')if (!today) return- today?.scrollIntoView({ behavior: 'smooth' })+ window.scrollTo({ top: today?.offsetTop + today?.offsetHeight, left: 0, behavior: 'smooth' })}return (diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsxindex fa97eeff369..acd29f4de1c 100644--- a/apps/www/pages/launch-week/index.tsx+++ b/apps/www/pages/launch-week/index.tsx@@ -140,7 +140,7 @@ export default function TicketHome({ users, meetups }: Props) {<div className="relative"><div className="relative z-10"><SectionContainer className="relative flex flex-col justify-around items-center min-h-[500px] !py-4 md:!py-8 lg:!pb-0 gap-2 md:gap-4 !px-0 !mx-auto">- <div className="absolute bottom-0 z-10 w-full flex flex-col items-center justify-end gap-4">+ <div className="absolute bottom-0 z-10 w-full flex flex-col items-center justify-end gap-4 px-6"><LaunchWeekLogoHeader /><LWAnnouncement isLaunchWeekPage /></div>@@ -170,7 +170,7 @@ export default function TicketHome({ users, meetups }: Props) {</div><div id="twitter-spaces">- <SectionContainer className="!pb-0" id="hackathon">+ <SectionContainer className="!pt-10 lg:!pt-14 !pb-0" id="hackathon"><LW8CalloutsSection /></SectionContainer></div>diff --git a/packages/ui/src/components/ExpandableVideo/ExpandableVideo.tsx b/packages/ui/src/components/ExpandableVideo/ExpandableVideo.tsxindex e9bf0a9f986..49e3b529d06 100644--- a/packages/ui/src/components/ExpandableVideo/ExpandableVideo.tsx+++ b/packages/ui/src/components/ExpandableVideo/ExpandableVideo.tsx@@ -104,8 +104,8 @@ export function ExpandableVideo({</div></Modal><button- onClick={(e: any) => {- if (onOpenCallback) onOpenCallback(e)+ onClick={() => {+ if (onOpenCallback) onOpenCallback()setExpandVideo(true)}}className={[triggerContainerClassName].join(' ')}