Merge pull request #760 from kethinov/truncate-long-names

Truncate long server names in server tabs
This commit is contained in:
Yuya Ochiai
2018-04-18 00:29:01 +09:00
committed by GitHub
3 changed files with 12 additions and 2 deletions

View File

@@ -22,6 +22,8 @@ Release date: TBD
[#746](https://github.com/mattermost/desktop/pull/746)
- Hide hovering URL bar for internal links.
[#745](https://github.com/mattermost/desktop/pull/745)
- Truncate long server names in server tabs.
[#518](https://github.com/mattermost/desktop/issues/518)
#### Windows
- [Windows 7/8] Desktop notifications now respect the duration setting of Control Panel.

View File

@@ -61,7 +61,7 @@ export default class TabBar extends React.Component { // need "this"
ref={id}
draggable={false}
>
<span className={unreadCount === 0 ? '' : 'teamTabItem-label'}>{team.name}</span>
<span title={team.name} className={unreadCount === 0 ? '' : 'teamTabItem-unread'}>{team.name}</span>
{ ' ' }
{ badgeDiv }
{permissionOverlay}

View File

@@ -1,3 +1,11 @@
.TabBar .teamTabItem span {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 170px;
}
.TabBar>li>a {
background: rgba(0, 0, 0, 0.05);
border-radius: 2px 2px 0 0;
@@ -38,6 +46,6 @@
border-radius: 50%;
}
.TabBar .teamTabItem-label {
.TabBar .teamTabItem-unread {
font-weight: bold;
}