From 9d920e093fdcb86f57ad2450bf2760a96978ded1 Mon Sep 17 00:00:00 2001 From: april <1317795103@qq.com> Date: Wed, 23 Aug 2023 15:42:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A1=B6=E9=83=A8=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 7558d62832766d00200e8e11573c1f001cfeb570 --- src/layout/index.vue | 6 ++++++ src/styles/sidebar.scss | 26 +------------------------- 2 files changed, 7 insertions(+), 25 deletions(-) diff --git a/src/layout/index.vue b/src/layout/index.vue index a2e671ee..af93cbcb 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -178,6 +178,12 @@ function toggleSideBar() { --el-menu-item-height: 50px; } +.mobile.isTop { + :deep(.logo-wrap) { + width: 63px; + } +} + .isMix { :deep(.main-container) { display: inline-block; diff --git a/src/styles/sidebar.scss b/src/styles/sidebar.scss index cebfe761..6b1e05dd 100644 --- a/src/styles/sidebar.scss +++ b/src/styles/sidebar.scss @@ -153,37 +153,13 @@ transition: transform 0.28s; } - &.hideSidebar:not(.isMix) { + &.hideSidebar:not(.isMix, .isTop) { .sidebar-container { pointer-events: none; transition-duration: 0.3s; transform: translate3d(-$sideBarWidth, 0, 0); } } - - &.hideSidebar { - .isMix { - :deep(.sidebar-container) { - .header { - .logo-wrap { - width: 64px; - } - } - } - } - } - - &.openSidebar { - .isMix { - :deep(.sidebar-container) { - .header { - .logo-wrap { - width: 210px; - } - } - } - } - } } .withoutAnimation {