Skip to content

Commit

Permalink
fix: app layout height
Browse files Browse the repository at this point in the history
  • Loading branch information
LeezQ committed Jul 29, 2022
1 parent 8d06003 commit 79155a3
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions packages/web/src/layout/AppLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,25 @@ import SideBar from './components/SideBar/index.vue'
</script>

<template>
<el-container fixed top-0 bottom-0 left-0 right-0>
<el-header relative z-5 style="--el-header-padding: 0;">
<top-bar />
<el-container>
<el-header style="--el-header-padding: 0; z-index: 9; margin-bottom: 2px;">
<TopBar />
</el-header>

<el-container>
<side-bar />

<el-main style="--el-main-padding: 0;" bg-light pt-10 flex>
<el-container style="height: calc(100vh - 64px)">
<el-aside width="200px">
<el-scrollbar>
<div p-6 h-screen>
<router-view />
</div>
<SideBar />
</el-scrollbar>
</el-main>
</el-aside>

<el-container>
<el-main>
<el-scrollbar>
<router-view />
</el-scrollbar>
</el-main>
</el-container>
</el-container>
</el-container>
</template>

0 comments on commit 79155a3

Please sign in to comment.