Ensure window dimensions are set on load. Fixes bug where the inspector side panel was displayed full width on large screens

This commit is contained in:
Jackson Harper 2024-02-14 14:11:51 +08:00
parent 01e9486b7f
commit c0e917848a

View file

@ -14,6 +14,8 @@ export default function useWindowDimensions() {
})
useEffect(() => {
setWindowDimensions(getWindowDimensions())
function handleResize() {
setWindowDimensions(getWindowDimensions())
}