diff --git a/src/components/portfolio/PortfolioGallery.tsx b/src/components/portfolio/PortfolioGallery.tsx index f2570ad..1f929c6 100644 --- a/src/components/portfolio/PortfolioGallery.tsx +++ b/src/components/portfolio/PortfolioGallery.tsx @@ -31,6 +31,7 @@ export default function PortfolioGallery({ const [items, setItems] = useState([]); const [done, setDone] = useState(false); const [loading, setLoading] = useState(false); + const showScreenDebug = false; const [screen, setScreen] = useState<{ width: number; height: number; @@ -86,6 +87,8 @@ export default function PortfolioGallery({ }, [loadMore]); useEffect(() => { + if (!showScreenDebug) return; + const update = () => { setScreen({ width: window.innerWidth, @@ -135,7 +138,7 @@ export default function PortfolioGallery({ return (
- {screen ? ( + {showScreenDebug && screen ? (
Screen {screen.width} × {screen.height} · {screen.dpr}x