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;
|
||||
|
||||
Reference in New Issue
Block a user