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.1175585
...
v1.1175535
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a24b8f4282 |
@@ -80,8 +80,8 @@ const Me: React.FC<{}> = () => {
|
||||
const imgRef = useRef<HTMLImageElement>();
|
||||
const [loaded, setLoaded] = useState(false);
|
||||
useEffect(() => {
|
||||
if (imgRef.current) {
|
||||
setLoaded(imgRef.current.complete);
|
||||
if (imgRef.current && imgRef.current.complete) {
|
||||
setLoaded(true);
|
||||
}
|
||||
}, [imgRef]);
|
||||
return (
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user