Skip to content

Commit 2f96e27

Browse files
author
piexlmax
committed
调整logo css,让菜单过长可以完整展示
1 parent f6fa4c3 commit 2f96e27

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

web/src/style/main.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,10 +576,12 @@ li {
576576
line-height: $height-aside-tilte;
577577
text-align: center;
578578
transition: all 0.3s;
579+
display: flex;
580+
align-items: center;
581+
justify-content: center;
579582
.logoimg {
580583
width: $width-aside-img;
581584
height: $height-aside-img;
582-
vertical-align: middle;
583585
background: #fff;
584586
border-radius: 50%;
585587
padding: 3px;
@@ -589,7 +591,6 @@ li {
589591
color: #fff;
590592
font-weight: 600;
591593
font-size: 20px;
592-
vertical-align: middle;
593594
padding-left: 10px;
594595
}
595596
}

web/src/view/layout/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<el-aside class="main-cont main-left">
66
<div class="tilte" :style="{background: backgroundColor}">
77
<img alt class="logoimg" :src="$GIN_VUE_ADMIN.appLogo">
8-
<h2 v-if="isSider" class="tit-text" :style="{color:textColor}">{{ $GIN_VUE_ADMIN.appName }}</h2>
8+
<div v-if="isSider" class="tit-text" :style="{color:textColor}">{{ $GIN_VUE_ADMIN.appName }}</div>
99
</div>
1010
<Aside class="aside" />
1111
</el-aside>

0 commit comments

Comments
 (0)