From adf10a882ee565d6a5c37ba07a9e8ec2289ccf34 Mon Sep 17 00:00:00 2001 From: jazz <49930677+jxmanxk@users.noreply.github.com> Date: 星期四, 03 三月 2022 17:55:17 +0800 Subject: [PATCH] Merge branch 'master' of http://1.15.4.62/r/~chenshaoxiong/sms_center_backstage --- src/layout/components/Sidebar/Logo.vue | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue index 4982961..272b4f1 100644 --- a/src/layout/components/Sidebar/Logo.vue +++ b/src/layout/components/Sidebar/Logo.vue @@ -2,7 +2,7 @@ <div class="sidebar-logo-container" :class="{'collapse':collapse}"> <transition name="sidebarLogoFade"> <router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/"> - <img v-if="logo" :src="logo" class="sidebar-logo"> + <img v-if="logo" :src="logo" class="sidebar-logo logo-center"> <h1 v-else class="sidebar-title">{{ title }} </h1> </router-link> <router-link v-else key="expand" class="sidebar-logo-link" to="/"> @@ -61,6 +61,11 @@ margin-right: 12px; } + & .logo-center { + margin-top: 50%; + transform: translateY(-50%); + } + & .sidebar-title { display: inline-block; margin: 0; -- Gitblit v1.8.0