Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(CE): sidebar responsiveness #485

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions ui/src/views/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,19 @@ const renderMenuSection = (section: MenuSection, index: number) => (
</Stack>
);

<<<<<<< HEAD
const SideBarFooter = () => (
<Stack>
<Profile />
</Stack>
);

const Sidebar = (): JSX.Element => {
=======
const Sidebar = (): JSX.Element => {
const { logoUrl = LOGO_URL } = useConfigStore.getState().configs;

>>>>>>> 2f52a500 (fix(CE): sidebar responsiveness)
return (
<Flex
position='relative'
Expand All @@ -116,6 +122,51 @@ const Sidebar = (): JSX.Element => {
<Box bgColor='gray.300'>
<Divider orientation='horizontal' />
</Box>
<<<<<<< HEAD
=======
</Stack>
<Stack
marginTop='20px'
spacing='6'
overflow='hidden auto'
height='100%'
justify='space-between'
shouldWrapChildren
>
<Stack
gap='16px'
overflow='hidden auto'
height='100%'
justify='space-between'
css={{
'&::-webkit-scrollbar': {
width: '2px',
},
'&::-webkit-scrollbar-thumb': {
backgroundColor: 'var(--chakra-colors-gray-400)',
},
}}
>
<Workspace />
{menus.map(renderMenuSection)}
</Stack>
<Stack spacing='0'>
<NavLink to='/settings'>
{({ isActive }) => (
<NavButton
label='Settings'
icon={FiSettings}
location='workspace'
isActive={isActive}
/>
)}
</NavLink>
<NavLink to='https://docs.squared.ai/guides/core-concepts'>
<NavButton label='Documentation' icon={FiBookOpen} />
</NavLink>
<Profile />
</Stack>
>>>>>>> 2f52a500 (fix(CE): sidebar responsiveness)
</Stack>
<Stack
paddingX='6px'
Expand Down