FIX: Remove transition so there is no close drawer glitch (#459)
This commit is contained in:
committed by
GitHub
parent
292ecafb31
commit
d429bd8f60
@@ -218,7 +218,6 @@ const Wrapper = styled("div")`
|
|||||||
|
|
||||||
const MainContent = styled("div")<{ isDrawerOpen: boolean }>`
|
const MainContent = styled("div")<{ isDrawerOpen: boolean }>`
|
||||||
margin-left: ${({ isDrawerOpen }) => (isDrawerOpen ? "0px" : "-264px")};
|
margin-left: ${({ isDrawerOpen }) => (isDrawerOpen ? "0px" : "-264px")};
|
||||||
transition: margin-left 0.2s;
|
|
||||||
width: ${({ isDrawerOpen }) =>
|
width: ${({ isDrawerOpen }) =>
|
||||||
isDrawerOpen ? "calc(100% - 264px)" : "100%"};
|
isDrawerOpen ? "calc(100% - 264px)" : "100%"};
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ function LeftDrawer({
|
|||||||
anchor="left"
|
anchor="left"
|
||||||
open={open}
|
open={open}
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
transitionDuration={200}
|
transitionDuration={0}
|
||||||
>
|
>
|
||||||
<DrawerHeader onNewModel={newModel} />
|
<DrawerHeader onNewModel={newModel} />
|
||||||
<DrawerContent setModel={setModel} onDelete={onDelete} />
|
<DrawerContent setModel={setModel} onDelete={onDelete} />
|
||||||
|
|||||||
Reference in New Issue
Block a user