From d46935d1aba5a40cb3af7ab1a2434c3676c33480 Mon Sep 17 00:00:00 2001 From: haoxr <1490493387@qq.com> Date: Sat, 17 Jun 2023 09:15:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20:recycle:=20=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 0675ba9b86e52bf1bba568c9bbbcbf8a8aff1dfe --- src/styles/index.scss | 20 ++++++++++---------- src/views/demo/api-doc.vue | 10 +++++++++- src/views/demo/websocket.vue | 2 +- src/views/system/dept/index.vue | 2 +- src/views/system/dict/DictData.vue | 2 +- src/views/system/dict/index.vue | 2 +- src/views/system/menu/index.vue | 8 ++++---- src/views/system/role/index.vue | 2 +- 8 files changed, 28 insertions(+), 20 deletions(-) diff --git a/src/styles/index.scss b/src/styles/index.scss index 655cc381..cccbd99f 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -3,14 +3,14 @@ @import "./dark"; .app-container { - margin: 20px; - - .search { - padding: 18px 0 0 10px; - margin-bottom: 10px; - background-color: var(--el-bg-color-overlay); - border: 1px solid var(--el-border-color-light); - border-radius: 4px; - box-shadow: var(--el-box-shadow-light); - } + padding: 10px; +} + +.search-container { + padding: 18px 0 0 10px; + margin-bottom: 10px; + background-color: var(--el-bg-color-overlay); + border: 1px solid var(--el-border-color-light); + border-radius: 4px; + box-shadow: var(--el-box-shadow-light); } diff --git a/src/views/demo/api-doc.vue b/src/views/demo/api-doc.vue index acd7fd76..d9071833 100644 --- a/src/views/demo/api-doc.vue +++ b/src/views/demo/api-doc.vue @@ -14,6 +14,14 @@ .app-container { display: flex; flex-direction: column; - height: calc(100vh - 124px); + + /* 84 = navbar + tags-view = 50 + 34 */ + height: calc(100vh - 50px); +} + +.hasTagsView { + .app-container { + height: calc(100vh - 84px); + } } diff --git a/src/views/demo/websocket.vue b/src/views/demo/websocket.vue index fae813d0..72f72074 100644 --- a/src/views/demo/websocket.vue +++ b/src/views/demo/websocket.vue @@ -86,7 +86,7 @@ onMounted(() => {}); >
-