Skip to content

Commit

Permalink
fix: #97
Browse files Browse the repository at this point in the history
  • Loading branch information
d3george authored and d3george committed Nov 8, 2024
1 parent dd4b555 commit 771be2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/layouts/dashboard/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import SearchBar from '../_common/search-bar';
import SettingButton from '../_common/setting-button';

import { NAV_COLLAPSED_WIDTH, NAV_WIDTH, HEADER_HEIGHT, OFFSET_HEADER_HEIGHT } from './config';
import Nav from './nav/nav-vertical';
import NavVertical from './nav/nav-vertical';

import { ThemeLayout } from '#/enum';

Expand Down Expand Up @@ -102,7 +102,7 @@ export default function Header({ className = '', offsetTop = false }: Props) {
}}
width="auto"
>
<Nav closeSideBarDrawer={() => setDrawerOpen(false)} />
<NavVertical closeSideBarDrawer={() => setDrawerOpen(false)} />
</Drawer>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ function DashboardLayout() {
<ScrollbarStyleWrapper $themeMode={themeMode}>
<ProgressBar />
<Layout className={layoutClassName}>
<Header offsetTop={themeLayout === ThemeLayout.Vertical ? offsetTop : undefined} />
<Suspense fallback={<CircleLoading />}>
<Layout>
<Header offsetTop={themeLayout === ThemeLayout.Vertical ? offsetTop : undefined} />
<Nav />
<Main ref={mainEl} offsetTop={offsetTop} />
</Layout>
Expand Down
1 change: 1 addition & 0 deletions src/layouts/dashboard/nav/nav-vertical.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export default function NavVertical(props: Props) {
width={NAV_WIDTH}
theme={sidebarTheme}
style={{
height: '100vh',
borderRight: `1px dashed ${Color(colorBorder).alpha(0.6).toString()}`,
}}
>
Expand Down

0 comments on commit 771be2f

Please sign in to comment.