Hide tile overlay immediately when closed

This commit is contained in:
Mitchell McCaffrey 2021-06-10 20:07:40 +10:00
parent b75db97c26
commit fa8d081079

View File

@ -50,19 +50,21 @@ function TilesOverlay({ modalSize, children }) {
const group = groups.find((group) => group.id === openGroupId); const group = groups.find((group) => group.id === openGroupId);
if (!openGroupId) {
return null;
}
return ( return (
<> <>
{openGroupId && ( <Box
<Box sx={{
sx={{ position: "absolute",
position: "absolute", width: "100%",
width: "100%", height: "100%",
height: "100%", top: 0,
top: 0, }}
}} bg="overlay"
bg="overlay" />
/>
)}
<ReactResizeDetector <ReactResizeDetector
handleWidth handleWidth
handleHeight handleHeight