From a24b8f42822403b04a3cb1fb25f645075dc35efe Mon Sep 17 00:00:00 2001 From: Morten Olsen Date: Fri, 27 Aug 2021 22:19:11 +0200 Subject: [PATCH] Attempted to fix iOS bug --- components/Me.tsx | 4 ++-- components/Social.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/Me.tsx b/components/Me.tsx index 580d840..6314977 100644 --- a/components/Me.tsx +++ b/components/Me.tsx @@ -80,8 +80,8 @@ const Me: React.FC<{}> = () => { const imgRef = useRef(); const [loaded, setLoaded] = useState(false); useEffect(() => { - if (imgRef.current) { - setLoaded(imgRef.current.complete); + if (imgRef.current && imgRef.current.complete) { + setLoaded(true); } }, [imgRef]); return ( diff --git a/components/Social.tsx b/components/Social.tsx index 7755171..86032b7 100644 --- a/components/Social.tsx +++ b/components/Social.tsx @@ -31,7 +31,7 @@ const Wrapper = styled.div` align-items: center; height: 100%; flex-wrap: wrap; - max-width: 1000px; + max-width: 1600px; `; const ItemWrapper = styled.a`