Skip to content

Commit 771be2f

Browse files
d3georged3george
authored andcommitted
fix: #97
1 parent dd4b555 commit 771be2f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/layouts/dashboard/header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import SearchBar from '../_common/search-bar';
1515
import SettingButton from '../_common/setting-button';
1616

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

2020
import { ThemeLayout } from '#/enum';
2121

@@ -102,7 +102,7 @@ export default function Header({ className = '', offsetTop = false }: Props) {
102102
}}
103103
width="auto"
104104
>
105-
<Nav closeSideBarDrawer={() => setDrawerOpen(false)} />
105+
<NavVertical closeSideBarDrawer={() => setDrawerOpen(false)} />
106106
</Drawer>
107107
</>
108108
);

src/layouts/dashboard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ function DashboardLayout() {
4747
<ScrollbarStyleWrapper $themeMode={themeMode}>
4848
<ProgressBar />
4949
<Layout className={layoutClassName}>
50-
<Header offsetTop={themeLayout === ThemeLayout.Vertical ? offsetTop : undefined} />
5150
<Suspense fallback={<CircleLoading />}>
5251
<Layout>
52+
<Header offsetTop={themeLayout === ThemeLayout.Vertical ? offsetTop : undefined} />
5353
<Nav />
5454
<Main ref={mainEl} offsetTop={offsetTop} />
5555
</Layout>

src/layouts/dashboard/nav/nav-vertical.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export default function NavVertical(props: Props) {
9797
width={NAV_WIDTH}
9898
theme={sidebarTheme}
9999
style={{
100+
height: '100vh',
100101
borderRight: `1px dashed ${Color(colorBorder).alpha(0.6).toString()}`,
101102
}}
102103
>

0 commit comments

Comments
 (0)