mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
🐛 Made aspect ratio 1 to 1
This commit is contained in:
@@ -19,5 +19,9 @@ export const useResize = (myRef: MutableRefObject<HTMLDivElement | null>) => {
|
||||
};
|
||||
}, [myRef, handleResize]);
|
||||
|
||||
useEffect(() => {
|
||||
handleResize();
|
||||
}, [myRef]);
|
||||
|
||||
return { width, height };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user