|
@@ -10,7 +10,7 @@
|
|
|
<div class="avatar">
|
|
|
<div class="imgCon"><el-image class="avatarImg" :src="userInfo.avatar || require('@/img/layout/userImg.png')" /></div>
|
|
|
<div class="name">
|
|
|
- {{ userInfo.username }}
|
|
|
+ <ellipsisScroll :title="userInfo.username || ''" />
|
|
|
</div>
|
|
|
<img class="horn" :class="{ isVisible: visible }" src="@/img/layout/horn.png" />
|
|
|
</div>
|
|
@@ -19,7 +19,7 @@
|
|
|
<div class="avatar-item">
|
|
|
<el-image class="avatarImg" :src="userInfo.avatar || require('@/img/layout/userImg.png')" />
|
|
|
<div class="userInfo">
|
|
|
- <div class="realName">{{ userInfo.username }}</div>
|
|
|
+ <div class="realName"><ellipsisScroll :title="userInfo.username || ''" /></div>
|
|
|
<div class="phone">{{ userInfo.phone }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -67,7 +67,6 @@ function handleLogout() {
|
|
|
.layout {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- min-width: 1200px;
|
|
|
min-height: 880px;
|
|
|
background: linear-gradient(180deg, #ffd884 0%, #ffa943 100%);
|
|
|
box-shadow: 0px 11px 15px 0px #63bd73, inset 0px 1px 14px 0px rgba(255, 255, 255, 0.5);
|
|
@@ -107,10 +106,13 @@ function handleLogout() {
|
|
|
.name {
|
|
|
margin-left: 6px;
|
|
|
font-size: 18px;
|
|
|
+ height: 18px;
|
|
|
+ line-height: 18px;
|
|
|
color: #244b55;
|
|
|
font-weight: 500;
|
|
|
- min-width: 56px;
|
|
|
+ width: 56px;
|
|
|
text-align: center;
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
|
.horn {
|
|
|
margin-left: 8px;
|
|
@@ -147,10 +149,13 @@ function handleLogout() {
|
|
|
}
|
|
|
.userInfo {
|
|
|
margin-left: 16px;
|
|
|
+ flex-grow: 1;
|
|
|
+ overflow: hidden;
|
|
|
.realName {
|
|
|
font-weight: 600;
|
|
|
font-size: 20px;
|
|
|
line-height: 28px;
|
|
|
+ height: 28px;
|
|
|
color: #333333;
|
|
|
}
|
|
|
.phone {
|