|
|
@@ -17,7 +17,7 @@
|
|
|
<ul class="dropdown-menu">
|
|
|
<li class="menu-item-first">
|
|
|
<i class="fa fa-map-marker" v-if="!enterprise.enName"></i>
|
|
|
- <span v-text="enterprise.enName?enterprise.enName:user.data.userName + '(个人账户)'"></span>
|
|
|
+ <span v-text="enterprise.enName?enterprise.enName:user.data.userName + '(个人账户)'" class="member-text"></span>
|
|
|
<a class="pull-right" @click="toggleEnterprises()" v-if="user.data.enterprises && user.data.enterprises.length > 1">
|
|
|
{{ showEnterprises ? '取消' : '切换' }}
|
|
|
</a>
|
|
|
@@ -131,6 +131,13 @@
|
|
|
color: #1162a4 !important;
|
|
|
line-height: inherit;
|
|
|
}
|
|
|
+ .member-text{
|
|
|
+ width: 80%;
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ display: inline-block;
|
|
|
+ }
|
|
|
@import '~assets/scss/mixins';
|
|
|
@import '~assets/scss/variables';
|
|
|
|
|
|
@@ -193,12 +200,13 @@
|
|
|
}
|
|
|
|
|
|
.dropdown-menu {
|
|
|
- width: 220px;
|
|
|
+ min-width: 220px;
|
|
|
margin-left: -1px;
|
|
|
border: $border;
|
|
|
border-top: none;
|
|
|
- padding: 1em;
|
|
|
+ padding: .5em;
|
|
|
margin:0;
|
|
|
+ display: inline-table;
|
|
|
|
|
|
.menu-item-first {
|
|
|
margin-bottom: 10px;
|