Skip to content

Commit

Permalink
RocketChat#755 [EDIT] Отображение тэгов и реакций в сообщениях | иконка
Browse files Browse the repository at this point in the history
  • Loading branch information
Scarvis committed Nov 3, 2020
1 parent 1fee261 commit 35d5911
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/reactions/client/stylesheets/reaction.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@
}

&.add-reaction {
visibility: hidden;
visibility: visible;

padding: 0 2px;

transition: opacity 0.2s ease;

opacity: 0;
opacity: 0.5;
color: #888888;
}

Expand Down
4 changes: 2 additions & 2 deletions app/tags/client/stylesheets/tags.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
}

&.add-tag {
visibility: hidden;
visibility: visible;

padding: 0 2px;

transition: opacity 0.2s ease;

opacity: 0;
opacity: 0.5;
color: #888888;
}

Expand Down
4 changes: 3 additions & 1 deletion app/theme/client/imports/components/goBackButton.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.go-back-button {
border-color: transparent !important;
border-width: 0.12rem !important;
border-color: var(--rc-color-button-primary) !important;
border-radius: 10rem !important;
background-color: transparent !important;

font-size: 24px !important;
Expand Down
3 changes: 1 addition & 2 deletions app/theme/client/imports/components/messages.css
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,13 @@
text-align: center;
text-decoration: none;
color: var(--color-black) !important;
border: 1px solid var(--button-reply-primary-background);
display: inline-block;
border-radius: 0.6em;
transition: all 0.5s ease-in-out;
position: relative;
overflow: hidden;
&:hover {
border-color: #4fb0fc;
border: 1px solid #4fb0fc;
color: var(--color-black) !important;
opacity: 1 !important;
}
Expand Down
1 change: 1 addition & 0 deletions app/theme/client/imports/general/base_old.css
Original file line number Diff line number Diff line change
Expand Up @@ -2130,6 +2130,7 @@
padding: 8px 50px 4px 70px;

line-height: 20px;
margin-block-end: 15px;

&-unread {
display: inline-block;
Expand Down
4 changes: 2 additions & 2 deletions app/ui-message/client/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ Template.message.helpers({
hideReactions() {
const { msg } = this;
if (_.isEmpty(msg.reactions)) {
return 'hidden';
//return 'hidden';
}
},
tags() {
Expand Down Expand Up @@ -370,7 +370,7 @@ Template.message.helpers({
hideTags() {
const { msg } = this;
if (_.isEmpty(msg.tags)) {
return 'hidden';
//return 'hidden';
}
},
hideAddReaction() {
Expand Down
2 changes: 1 addition & 1 deletion app/ui-sidenav/client/sidebarHeader.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</div>
<div class="sidebar__toolbar">
{{#each toolbarButtons}}
<button class="sidebar__toolbar-button js-button" title="{{name}}" aria-haspopup="{{hasPopup}}">
<button class="sidebar__toolbar-button js-button" style={{getButtonStyle name}} title="{{name}}" aria-haspopup="{{hasPopup}}">
{{> icon block="sidebar__toolbar-button-icon" icon=icon }}
</button>
{{/each}}
Expand Down
9 changes: 9 additions & 0 deletions app/ui-sidenav/client/sidebarHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ Template.sidebarHeader.helpers({
toolbarButtons() {
return toolbarButtons(/* Meteor.userId() */).filter((button) => !button.condition || button.condition());
},
homeButton(titleButton) {
return titleButton === 'Home';
},
getButtonStyle(titleButton) {
if (titleButton === 'Home') {
return 'margin-left: auto;';
}
return '';
},
showToolbar() {
return showToolbar.get();
},
Expand Down
36 changes: 36 additions & 0 deletions private/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.

0 comments on commit 35d5911

Please sign in to comment.