sidebar position fixed

This commit is contained in:
Taehee Choi 2022-03-24 22:29:00 -07:00
parent 0a8546f6f7
commit e810900c7e

View File

@ -16,7 +16,7 @@ import SidebarUser from "./SidebarUser";
// TODO: toolbar on top of sidebar since it goes under the navbar
const drawerWidth = "12.5%";
const drawerWidth = "200px";
const Sidebar: React.FC = () => {
const [group, setGroup] = useState<string>("Favorites");
@ -33,15 +33,16 @@ const Sidebar: React.FC = () => {
selectUserStatuses(state, groupMembersUuids)
);
console.log(group);
return (
<Drawer
sx={{
width: drawerWidth,
"& .MuiDrawer-paper": {
width: drawerWidth,
position: "static",
height: "100%",
},
height: "100%",
}}
variant="permanent"
anchor="right"