Skip to content

Commit

Permalink
fix: 侧边栏滚不动
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Dec 3, 2024
1 parent c8ebadf commit a0d92d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion web/src/layout/IndexView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ const themeStore = useThemeStore()
placement="left"
@mask-click="themeStore.setCollapsed(true)"
>
<side-bar />
<n-scrollbar>
<side-bar />
</n-scrollbar>
</n-drawer>

<article flex-col flex-1 overflow-hidden>
Expand Down
8 changes: 4 additions & 4 deletions web/src/layout/sidebar/IndexView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import SideMenu from './components/SideMenu.vue'
</script>

<template>
<div h-full flex flex-col>
<side-logo />
<side-menu />
<side-setting mt-auto />
<div h-screen flex flex-col>
<side-logo flex-shrink-0 />
<side-menu flex-shrink-0 flex-grow-1 />
<side-setting flex-shrink-0 />
</div>
</template>

0 comments on commit a0d92d5

Please sign in to comment.