From 5d0120d2e8a6e5cd2e1e95d4c5ffeecf5fc1c4a6 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期二, 10 十月 2023 15:35:58 +0800 Subject: [PATCH] Merge branch 'dev' into songshankun/adjust-style --- src/components/layout/components/AppMain.vue | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/layout/components/AppMain.vue b/src/components/layout/components/AppMain.vue index 7223e79..f14d709 100644 --- a/src/components/layout/components/AppMain.vue +++ b/src/components/layout/components/AppMain.vue @@ -1,7 +1,9 @@ <template> <div class="app-main"> <AppHeader :headerTitle="$route.meta.title" /> - <router-view :key="key" /> + <div class="app-main-content"> + <router-view :key="key" /> + </div> </div> </template> @@ -22,12 +24,17 @@ <!-- Add "scoped" attribute to limit CSS to this component only --> <style lang="scss" scoped> .app-main { - margin-left: 10px; box-sizing: border-box; display: flex; flex: 1; flex-direction: column; + background-color: $color-bg; // height: 100%; - width: 100%; + width: calc(100% - 200px); + .app-main-content { + width: 100%; + overflow-y: hidden; + height: calc(100% - 50px); + } } </style> -- Gitblit v1.8.0