Skip to content

Commit

Permalink
Merge pull request #8213 from RocketChat/leave-and-hide
Browse files Browse the repository at this point in the history
[FIX] Leave and hide buttons was removed
  • Loading branch information
rodrigok authored Sep 20, 2017
2 parents 9ecbcf4 + 87db75b commit c198b5f
Show file tree
Hide file tree
Showing 7 changed files with 215 additions and 93 deletions.
160 changes: 71 additions & 89 deletions packages/rocketchat-google-vision/.npm/package/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/rocketchat-i18n/i18n/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"Hide_flextab": "Hide right side bar with click",
"Hide_Group_Warning": "Are you sure you want to hide the group \"%s\"?",
"Hide_Private_Warning": "Are you sure you want to hide the discussion with \"%s\"?",
"Hide_Livechat_Warning": "Are you sure you want to hide the livechat with \"%s\"?",
"Hide_room": "Hide room",
"Hide_Room_Warning": "Are you sure you want to hide the room \"%s\"?",
"Hide_roles": "Hide roles",
Expand Down Expand Up @@ -981,6 +982,7 @@
"Least_Amount": "Least Amount",
"Leave_Group_Warning": "Are you sure you want to leave the group \"%s\"?",
"Leave_Private_Warning": "Are you sure you want to leave the discussion with \"%s\"?",
"Leave_Livechat_Warning": "Are you sure you want to leave the livechat with \"%s\"?",
"Leave_room": "Leave room",
"Leave_Room_Warning": "Are you sure you want to leave the room \"%s\"?",
"Leave_the_current_channel": "Leave the current channel",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
border-radius: var(--sidebar-item-radius);
align-items: center;

&:hover {
& .sidebar-item__menu {
display: block;
}

& .badge {
display: none;
}
}

&--active {
background-color: var(--color-dark-light);
}
Expand Down Expand Up @@ -122,6 +132,14 @@
font-size: var(--sidebar-item-text-size);
line-height: var(--sidebar-item-height);
}

&__menu {
display: none;

&-icon {
fill: var(--color-white);
}
}
}

.rtl .sidebar-item__user-status {
Expand Down
1 change: 1 addition & 0 deletions packages/rocketchat-ui-master/public/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion packages/rocketchat-ui-sidenav/client/sidebarItem.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
</div>
<div class='sidebar-item__name {{archivedClass}}'>{{name}}</div>
{{#if unread}}
<span class="badge badge--unread">{{unread}}</span>
<span class="badge badge--unread">{{unread}}</span>
{{/if}}
<div class="sidebar-item__menu">
{{> icon block="sidebar-item__menu-icon" icon="menu"}}
</div>
</a>
</li>
</template>
Loading

0 comments on commit c198b5f

Please sign in to comment.