Skip to content

Commit

Permalink
change(ui): sidemenu changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shekarsiri committed Dec 6, 2023
1 parent c5b8398 commit cb40e8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions frontend/app/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ function Layout(props: Props) {
<Sider
style={{
position: 'sticky',
top: 60, // Height of the Header
top: 70, // Height of the Header
// backgroundColor: '#f6f6f6',
height: 'calc(100vh - 60px)', // Adjust the height to accommodate the Header
height: 'calc(100vh - 70px)', // Adjust the height to accommodate the Header
overflow: 'auto' // Enable scrolling for the Sider content if needed
}}
collapsed={settingsStore.menuCollapsed}
Expand Down
9 changes: 2 additions & 7 deletions frontend/app/layout/SideMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,7 @@ function SideMenu(props: Props) {
{!category.hidden && (
<>
{index > 0 && <Divider style={{ margin: '6px 0' }} />}
<Menu.ItemGroup
key={category.key}
title={category.title}
// title={<div style={{ paddingLeft: isCollapsed ? '' : '6px' }}
// className={cn({ 'text-center': isCollapsed })}>{category.title}</div>}
>

{category.items.filter((item: any) => !item.hidden).map((item: any) => {
const isActive = isMenuItemActive(item.key);

Expand Down Expand Up @@ -215,7 +210,7 @@ function SideMenu(props: Props) {
</Menu.Item>
);
})}
</Menu.ItemGroup>

</>
)}
</React.Fragment>
Expand Down

0 comments on commit cb40e8c

Please sign in to comment.