From d0c00bfb870bdf625d6b345c6badbca4a037d629 Mon Sep 17 00:00:00 2001 From: xyfer17 Date: Sat, 5 Oct 2024 10:56:17 +0530 Subject: [PATCH 1/2] fix(CE): dashboard sidebar responsiveness --- ui/src/views/Sidebar/Sidebar.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ui/src/views/Sidebar/Sidebar.tsx b/ui/src/views/Sidebar/Sidebar.tsx index 5e798b52..7692bd24 100644 --- a/ui/src/views/Sidebar/Sidebar.tsx +++ b/ui/src/views/Sidebar/Sidebar.tsx @@ -90,7 +90,7 @@ const renderMenuSection = (section: MenuSection, index: number) => ( ); const SideBarFooter = () => ( - + @@ -114,6 +114,16 @@ const Sidebar = (): JSX.Element => { borderRightWidth='1px' borderRightStyle='solid' borderRightColor='gray.400' + minWidth='240px' + overflow='hidden auto' + css={{ + '&::-webkit-scrollbar': { + width: '2px', + }, + '&::-webkit-scrollbar-thumb': { + backgroundColor: 'var(--chakra-colors-gray-400)', + }, + }} > @@ -126,8 +136,8 @@ const Sidebar = (): JSX.Element => { {menus.map(renderMenuSection)} - + From ee9ad20e86f4358346e595dde9852545ebdf4dd6 Mon Sep 17 00:00:00 2001 From: xyfer17 Date: Tue, 15 Oct 2024 23:13:26 +0530 Subject: [PATCH 2/2] feat(CE): change logo style sticky --- ui/src/views/Sidebar/Sidebar.tsx | 43 +++++++++++++++++++------------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/ui/src/views/Sidebar/Sidebar.tsx b/ui/src/views/Sidebar/Sidebar.tsx index 7692bd24..d7395318 100644 --- a/ui/src/views/Sidebar/Sidebar.tsx +++ b/ui/src/views/Sidebar/Sidebar.tsx @@ -91,15 +91,6 @@ const renderMenuSection = (section: MenuSection, index: number) => ( const SideBarFooter = () => ( - - - - - - - - - ); @@ -115,15 +106,6 @@ const Sidebar = (): JSX.Element => { borderRightStyle='solid' borderRightColor='gray.400' minWidth='240px' - overflow='hidden auto' - css={{ - '&::-webkit-scrollbar': { - width: '2px', - }, - '&::-webkit-scrollbar-thumb': { - backgroundColor: 'var(--chakra-colors-gray-400)', - }, - }} > @@ -134,8 +116,33 @@ const Sidebar = (): JSX.Element => { + + {menus.map(renderMenuSection)} + + + + + + + + +