头部姓名过长,省略

This commit is contained in:
caishi 2021-09-03 14:57:39 +08:00
parent db18cd41b0
commit 3fce9a99ad
2 changed files with 8 additions and 1 deletions

View File

@ -260,7 +260,7 @@ class NewHeader extends Component {
return(
<Menu className="currentMenu">
<Menu.Item>
<span title={current_user && current_user.username}>{current_user && current_user.username}</span>
<span className="currentName" title={current_user && current_user.username}>{current_user && current_user.username}</span>
</Menu.Item>
{
personal && personal.length > 0 && personal.map((item,key)=>{

View File

@ -30,6 +30,13 @@
width: 120px;
text-align: center;
padding:0px;
.currentName{
padding:0px 8px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: block;
}
li{
height: 40px;
line-height: 40px;