菜单栏昵称样式调整

This commit is contained in:
joylink_cuiweidong 2019-10-24 14:32:44 +08:00
parent c0394657a8
commit e8b8d5a91d
2 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<div class="linkDiv"> <div class="linkDiv">
<router-link tag="a" target="_blank" to="/design" class="linkClass">设计平台入口</router-link> <router-link tag="a" target="_blank" to="/design" class="linkClass">设计平台入口</router-link>
</div> </div>
<div class="avatar-container" style="display:inline-block"> <div class="avatar-container" style="display:inline-block;margin-right:10px">
<el-menu-item v-for="item in entryList" v-show="!item.hidden" :key="item.name" class="avatar-wrapper" index="" @click="item.handle"> <el-menu-item v-for="item in entryList" v-show="!item.hidden" :key="item.name" class="avatar-wrapper" index="" @click="item.handle">
<span style="color: white;">{{ $t(item.name) }}</span> <span style="color: white;">{{ $t(item.name) }}</span>
</el-menu-item> </el-menu-item>

View File

@ -1,5 +1,5 @@
<template> <template>
<el-dropdown class="avatar-container" trigger="hover" :show-timeout="100"> <el-dropdown class="avatar-container" trigger="hover" :show-timeout="100" style="height:58px">
<div class="avatar-wrapper" > <div class="avatar-wrapper" >
<span style="color: white;"> <span style="color: white;">
{{ username }} {{ username }}
@ -69,7 +69,7 @@ export default {
</script> </script>
<style rel="stylesheet/scss" lang="scss" scoped> <style rel="stylesheet/scss" lang="scss" scoped>
$height: 61px; $height: 58px;
.navbar { .navbar {
height: $height; height: $height;
@ -102,6 +102,7 @@ export default {
.avatar-wrapper { .avatar-wrapper {
cursor: pointer; cursor: pointer;
position: relative; position: relative;
height: $height;
.user-avatar { .user-avatar {
width: 40px; width: 40px;