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 }>`
|
||||
margin-left: ${({ isDrawerOpen }) => (isDrawerOpen ? "0px" : "-264px")};
|
||||
transition: margin-left 0.2s;
|
||||
width: ${({ isDrawerOpen }) =>
|
||||
isDrawerOpen ? "calc(100% - 264px)" : "100%"};
|
||||
display: flex;
|
||||
|
||||
@@ -26,7 +26,7 @@ function LeftDrawer({
|
||||
anchor="left"
|
||||
open={open}
|
||||
onClose={onClose}
|
||||
transitionDuration={200}
|
||||
transitionDuration={0}
|
||||
>
|
||||
<DrawerHeader onNewModel={newModel} />
|
||||
<DrawerContent setModel={setModel} onDelete={onDelete} />
|
||||
|
||||
Reference in New Issue
Block a user