diff --git a/components/Home/sidebar/RootLeftSidebar.tsx b/components/Home/sidebar/RootLeftSidebar.tsx index 6720209fc..da85811e1 100644 --- a/components/Home/sidebar/RootLeftSidebar.tsx +++ b/components/Home/sidebar/RootLeftSidebar.tsx @@ -426,198 +426,199 @@ function RootLeftSidebar({ }, }} > -
-
-
-
- - +
+ + + + {!isMinimized && ( + - - {!isMinimized && ( - - )} - - -
+ )} + +
+
+
+ +
+ +
+ +
+
+
- + {leftSidebarItems}
- - {leftSidebarItems}
-
-
- {!isMinimized && ( -
Resources
- )} -
- {/* - - - {isMinimized ? ( - "Invite" - ) : ( - <> - {"Invite and earn"} - - - )} - - - */} - - {/* @ts-ignore */} - -
+ {!isMinimized && ( +
Resources
+ )} +
+ {/* + + + {isMinimized ? ( + "Invite" + ) : ( + <> + {"Invite and earn"} + + + )} + + + */} + + {/* @ts-ignore */} + - {isMinimized ? "Verify" : ( - <> - Verify Identity - - - )} -
- - - - {isMinimized ? "Comm.." : "Community"} - - - {"Support"} - - - {"About"} - - {/* - {isMinimized ? "Top" : "Leaderboard"} - */} -
-
-
+
+ {isMinimized ? "Verify" : ( + <> + Verify Identity + + + )} +
+ + - {} + {isMinimized ? "Comm.." : "Community"} - - {} - - - {} + {"Support"} - + {"About"} + + {/* - {} - + {isMinimized ? "Top" : "Leaderboard"} + */}
-
- - {"Terms"} - - - {"Privacy"} - - - {"Issues"} - - - {"Docs"} - +
+
+ + {} + + + {} + + + {} + + + {} + +
+
+ + {"Terms"} + + + {"Privacy"} + + + {"Issues"} + + + {"Docs"} + +
@@ -634,7 +635,7 @@ const styles = StyleSheet.create({ top: 0, zIndex: 10, height: "100vh", - overflowY: "auto", + overflowY: "hidden", [`@media only screen and (max-width: ${breakpoints.xsmall.str})`]: { display: "none", }, @@ -806,6 +807,23 @@ const styles = StyleSheet.create({ height: 40, width: "100%", }, + fixedHeader: { + position: 'sticky', + top: 0, + background: colors.GREY_ICY_BLUE_HUE, + zIndex: 2, + //borderBottom: `1px solid ${colors.GREY_BORDER}`, + }, + + scrollableContent: { + height: 'calc(100vh - 136px)', // Desktop height + overflowY: 'auto', + overflowX: 'hidden', + [`@media only screen and (max-width: ${breakpoints.large.str})`]: { + height: 'auto', // Remove fixed height on mobile + overflowY: 'visible', // Disable scrolling on mobile + }, + }, }); const mapDispatchToProps = {