Skip to content

Commit

Permalink
fix text ellipsis on sidebar-item (#10430)
Browse files Browse the repository at this point in the history
[FIX] Room's name was cutting instead of having ellipses on sidebar
  • Loading branch information
ggazzo authored and rodrigok committed Apr 16, 2018
1 parent bdd28e9 commit fa91f8d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@

&__user-status {
flex: 0 0 auto;

width: var(--sidebar-item-user-status-size);
height: var(--sidebar-item-user-status-size);

Expand Down Expand Up @@ -201,6 +201,15 @@
justify-content: space-between;
}

&__ellipsis {
overflow: hidden;

flex: 1;

white-space: nowrap;
text-overflow: ellipsis;
}

&__name {
display: flex;

Expand Down
10 changes: 6 additions & 4 deletions packages/rocketchat-ui-sidenav/client/sidebarItem.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@
</div>
{{/if}}
{{/unless}}
{{name}}
{{#if mySelf}}
<span class="sidebar-item__me">({{_ "You"}})</span>
{{/if}}
<div class="sidebar-item__ellipsis">
{{name}}
{{#if mySelf}}
<span class="sidebar-item__me">({{_ "You"}})</span>
{{/if}}
</div>
</div>
{{#if isExtendedViewMode}}
{{#if lastMessageTs}}
Expand Down

0 comments on commit fa91f8d

Please sign in to comment.