Refactor sidebar to transition smoothly by changing open sidebar width from 100% to 210px
This commit is contained in:
@@ -83,7 +83,7 @@ export default function Sidebar() {
|
||||
return (
|
||||
<Box
|
||||
css={styles.root}
|
||||
width={isOpen ? "100%" : "86px"}
|
||||
width={isOpen ? "210px" : "71px"}
|
||||
transition="width 0.4s ease"
|
||||
>
|
||||
<IconButton
|
||||
|
||||
Reference in New Issue
Block a user