Skip to content

Commit

Permalink
[FIX] Channel settings buttons (#8753)
Browse files Browse the repository at this point in the history
* Fix channel settings buttons

* fix member view on flex-tab

* try to fix test

* add scroll to add users flex-tab
  • Loading branch information
karlprieb authored and geekgonecrazy committed Nov 28, 2017
1 parent eac8f68 commit aabc541
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ html.rtl .flex-tab {
}

& .editing {
margin: -2px 0 -1px -9px;
padding-right: 80px;
font-size: 14px;
}
Expand Down
7 changes: 7 additions & 0 deletions packages/rocketchat-livechat/app/package-lock.json

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

20 changes: 7 additions & 13 deletions packages/rocketchat-theme/client/imports/general/base_old.css
Original file line number Diff line number Diff line change
Expand Up @@ -3429,7 +3429,6 @@ body:not(.is-cordova) {
overflow-x: visible;

width: var(--flex-tab-width);
height: calc(100vh - 61px);

& .control {
& .header {
Expand Down Expand Up @@ -3516,23 +3515,14 @@ body:not(.is-cordova) {
}

& .content {
position: absolute;
top: auto;
left: 0;

overflow-x: hidden;
overflow-y: auto;

width: 100%;
height: 100%;
-webkit-overflow-scrolling: touch;

& > div {
overflow-y: auto;

transition: transform 0.45s cubic-bezier(0.5, 0, 0, 1), opacity 0.125s ease-out 0.1s;
}

& > .animated-hidden {
transform: translateX(100%);
transform: translateX(calc(100% + 40px));

opacity: 0;
}
Expand Down Expand Up @@ -3568,6 +3558,10 @@ body:not(.is-cordova) {
}
}

& .channel-settings .button {
visibility: initial;
}

& footer {
position: absolute;
z-index: 100;
Expand Down
4 changes: 0 additions & 4 deletions packages/rocketchat-theme/server/colors.less
Original file line number Diff line number Diff line change
Expand Up @@ -714,10 +714,6 @@ input:-webkit-autofill {
}
}

.button {
.buttonColors(lighten(@primary-font-color, 25%), @secondary-background-color);
}

.input.checkbox.toggle {
input:checked + label::before {
background-color: @primary-background-color;
Expand Down
6 changes: 3 additions & 3 deletions tests/pageobjects/flex-tab.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ class FlexTab extends Page {
get usersSendInvitationTab() { return browser.element('.tab-button:not(.hidden) .tab-button-icon--send'); }
get usersAddUserTab() { return browser.element('.tab-button:not(.hidden) .tab-button-icon--plus'); }
get usersSendInvitationTextArea() { return browser.element('#inviteEmails'); }
get usersButtonCancel() { return browser.element('button.cancel'); }
get usersSendInvitationSend() { return browser.element('button.send'); }
get usersButtonSave() { return browser.element('button.save'); }
get usersButtonCancel() { return browser.element('.button.cancel'); }
get usersSendInvitationSend() { return browser.element('.button.send'); }
get usersButtonSave() { return browser.element('.button.save'); }
get usersAddUserName() { return browser.element('#name'); }
get usersAddUserUsername() { return browser.element('#username'); }
get usersAddUserEmail() { return browser.element('#email'); }
Expand Down

0 comments on commit aabc541

Please sign in to comment.