Skip to content

Commit

Permalink
Merge pull request #35 from ChangePlusPlusVandy/rachel/sidebar
Browse files Browse the repository at this point in the history
made sidebar + header bar sticky
  • Loading branch information
yifeifang11 authored Jan 27, 2025
2 parents 3ea3692 + e38d2d8 commit 47c1ec7
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions frontend/src/routes/appRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,24 @@ function AppRoutes() {
<div style={{ width: "100%" }}>
<HeaderBar isOpen={isHeaderBarOpen} setIsOpen={setIsHeaderBarOpen} />
</div>
<div style={{ display: "flex", flex: 1 }}>
<div style={{ display: "flex", alignItems: "center" }}>
<Sidebar
isCollapsed={isCollapsed}
setIsCollapsed={setIsCollapsed}
/>
</div>
<div
style={{
position: "absolute",
display: "flex",
alignItems: "center",
top: "25%",
}}
>
<Sidebar isCollapsed={isCollapsed} setIsCollapsed={setIsCollapsed} />
</div>
<div
style={{
display: "flex",
flex: 1,
overflow: "auto",
paddingLeft: isCollapsed ? "6rem" : "17rem",
}}
>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
Expand Down

0 comments on commit 47c1ec7

Please sign in to comment.