From 906873d52d7e0a769f6e76700dda92e1faa3e4e9 Mon Sep 17 00:00:00 2001 From: techpixel <68567672+techpixel@users.noreply.github.com> Date: Thu, 22 Jan 2026 21:46:08 -0500 Subject: [PATCH] fix: idk if this'll fix site overflows --- astro/src/components/pages/App.tsx | 2 +- astro/src/components/pages/Satellite.tsx | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/astro/src/components/pages/App.tsx b/astro/src/components/pages/App.tsx index aabc7fe..8372281 100644 --- a/astro/src/components/pages/App.tsx +++ b/astro/src/components/pages/App.tsx @@ -127,7 +127,7 @@ function App({ events }: { events: EventLocation[] }) {
windowWidth && windowWidth < 860 ? "flex items-stretch pb-0" : "h-full flex items-end pb-32 2xl:pb-48" )}>
diff --git a/astro/src/components/pages/Satellite.tsx b/astro/src/components/pages/Satellite.tsx index 1fd4da5..8e92568 100644 --- a/astro/src/components/pages/Satellite.tsx +++ b/astro/src/components/pages/Satellite.tsx @@ -35,6 +35,8 @@ function App({slug, content, record_id}: {slug: string | undefined, content: Sat const [isLargeScreen, setIsLargeScreen] = useState(window.innerWidth >= 1280); const [isMapOpen, setIsMapOpen] = useState(false); const emailRef = useRef(null); + const [windowHeight, setWindowHeight] = useState(window.innerHeight); + const [windowWidth, setWindowWidth] = useState(window.innerWidth); useEffect(() => { document.addEventListener("scroll", () => { @@ -66,7 +68,7 @@ function App({slug, content, record_id}: {slug: string | undefined, content: Sat } return ( -
+
-
+
windowWidth && windowWidth < 860 ? "flex items-stretch pb-0" : "h-full flex items-end pb-32 2xl:pb-48" + )}>