mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
Compare commits
1 Commits
v1.1251269
...
v1.1175535
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a24b8f4282 |
@@ -80,8 +80,8 @@ const Me: React.FC<{}> = () => {
|
|||||||
const imgRef = useRef<HTMLImageElement>();
|
const imgRef = useRef<HTMLImageElement>();
|
||||||
const [loaded, setLoaded] = useState(false);
|
const [loaded, setLoaded] = useState(false);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (imgRef.current) {
|
if (imgRef.current && imgRef.current.complete) {
|
||||||
setLoaded(imgRef.current.complete);
|
setLoaded(true);
|
||||||
}
|
}
|
||||||
}, [imgRef]);
|
}, [imgRef]);
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const Wrapper = styled.div`
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
max-width: 1000px;
|
max-width: 1600px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const ItemWrapper = styled.a`
|
const ItemWrapper = styled.a`
|
||||||
|
|||||||
Reference in New Issue
Block a user