FIX: Remove transition so there is no close drawer glitch (#459)

This commit is contained in:
Nicolás Hatcher Andrés
2025-10-19 17:12:49 +02:00
committed by GitHub
parent 292ecafb31
commit d429bd8f60
2 changed files with 1 additions and 2 deletions

View File

@@ -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;

View File

@@ -26,7 +26,7 @@ function LeftDrawer({
anchor="left"
open={open}
onClose={onClose}
transitionDuration={200}
transitionDuration={0}
>
<DrawerHeader onNewModel={newModel} />
<DrawerContent setModel={setModel} onDelete={onDelete} />