forked from Gitlink/forgeplus-react
头部姓名过长,省略
This commit is contained in:
parent
db18cd41b0
commit
3fce9a99ad
|
@ -260,7 +260,7 @@ class NewHeader extends Component {
|
||||||
return(
|
return(
|
||||||
<Menu className="currentMenu">
|
<Menu className="currentMenu">
|
||||||
<Menu.Item>
|
<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>
|
</Menu.Item>
|
||||||
{
|
{
|
||||||
personal && personal.length > 0 && personal.map((item,key)=>{
|
personal && personal.length > 0 && personal.map((item,key)=>{
|
||||||
|
|
|
@ -30,6 +30,13 @@
|
||||||
width: 120px;
|
width: 120px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding:0px;
|
padding:0px;
|
||||||
|
.currentName{
|
||||||
|
padding:0px 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
li{
|
li{
|
||||||
height: 40px;
|
height: 40px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
|
|
Loading…
Reference in New Issue