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 (
|
return (
|
||||||
<Box
|
<Box
|
||||||
css={styles.root}
|
css={styles.root}
|
||||||
width={isOpen ? "100%" : "86px"}
|
width={isOpen ? "210px" : "71px"}
|
||||||
transition="width 0.4s ease"
|
transition="width 0.4s ease"
|
||||||
>
|
>
|
||||||
<IconButton
|
<IconButton
|
||||||
|
|||||||
Reference in New Issue
Block a user