Skip to content

Commit 2218821

Browse files
Copilotpetebachant
andcommitted
Fix responsive scroll behavior - complete PR #202
Co-authored-by: petebachant <4604869+petebachant@users.noreply.github.com>
1 parent 7d74459 commit 2218821

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

frontend/src/components/Common/PageMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const PageMenu = ({ children }: PageMenuProps) => {
99
return (
1010
<Box
1111
position="sticky"
12-
top={16} // Height of Topbar
12+
top={0}
1313
maxW="300px"
1414
minW="200px"
1515
h="fit-content"

frontend/src/components/Common/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const Sidebar = ({ basePath }: SidebarProps) => {
7272
{/* Desktop */}
7373
<Box
7474
bg={bgColor}
75-
h="calc(100vh - 65px)"
75+
h="calc(100vh - 64px)"
7676
position="sticky"
7777
left="0"
7878
top={16}

frontend/src/routes/_layout/$accountName/$projectName/_layout.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,11 @@ function ProjectLayout() {
146146
) : (
147147
<Flex>
148148
<Sidebar basePath={`/${accountName}/${projectName}`} />
149-
<Container maxW="full" mx={6} mb={10}>
149+
<Container
150+
maxW="full"
151+
overflowY="scroll"
152+
height="calc(100vh - 64px)"
153+
>
150154
<Container
151155
maxW="100%"
152156
alignContent="center"

0 commit comments

Comments
 (0)