Fix sidebar (again)

This commit is contained in:
Keannu Christian Bernasol 2023-02-21 14:25:55 +08:00
parent c08d927f01
commit 308f193756
2 changed files with 32 additions and 22 deletions

View file

@ -57,18 +57,29 @@ export default function Sidebar() {
); );
} else { } else {
return ( return (
<div style={styles.sidebar_wrapper}> <div style={styles.sidebar_container}>
<div
style={{
display: "flex",
flexDirection: "row",
justifyContent: "flex-end",
}}
>
<div <div
style={{ style={{
position: "relative", position: "relative",
display: "flex", display: "flex",
flexDirection: "column", flexDirection: "column",
justifyContent: "flex-start",
}} }}
> >
<SidebarButton onClick={() => navigate("/")} name="Dashboard"> <SidebarButton onClick={() => navigate("/")} name="Dashboard">
<HomeIcon size={4} color="white" /> <HomeIcon size={4} color="white" />
</SidebarButton> </SidebarButton>
<SidebarButton onClick={() => navigate("/Products")} name="Products"> <SidebarButton
onClick={() => navigate("/Products")}
name="Products"
>
<ProductsIcon size={4} color="white" /> <ProductsIcon size={4} color="white" />
</SidebarButton> </SidebarButton>
<SidebarButton <SidebarButton
@ -80,12 +91,12 @@ export default function Sidebar() {
<SidebarButton onClick={() => navigate("/Logs")} name="Logs"> <SidebarButton onClick={() => navigate("/Logs")} name="Logs">
<LogsIcon size={4} color="white" /> <LogsIcon size={4} color="white" />
</SidebarButton> </SidebarButton>
</div>
<Logout> <Logout>
<LogoutIcon size={4} color="white" /> <LogoutIcon size={4} color="white" />
</Logout> </Logout>
</div> </div>
</div>
</div>
); );
} }
} }

View file

@ -141,7 +141,6 @@ const styles: { [key: string]: React.CSSProperties } = {
paddingLeft: "2vh", paddingLeft: "2vh",
backgroundColor: "#3d4848", backgroundColor: "#3d4848",
}, },
sidebar_wrapper: {},
}; };
export default styles; export default styles;