Skip to content

Commit

Permalink
Merge pull request RocketChat#166 from shubhsherl/pref_icon
Browse files Browse the repository at this point in the history
Add responsive icon in user preference screen
  • Loading branch information
ear-dev committed Feb 24, 2020
2 parents 1751caa + d538e09 commit 57bf4eb
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/theme/client/imports/components/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

padding: 0.25rem 0;

white-space: nowrap;
white-space: pre-wrap;
text-overflow: ellipsis;

font-size: 0.9rem;
Expand Down
19 changes: 19 additions & 0 deletions app/theme/client/imports/forms/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@
border: 0;
border-color: var(--button-cancel-color);
background-color: var(--button-cancel-color);

.rc-button-icon {
display: none;
visibility: hidden;
}
}

&--cancel.rc-button--outline {
Expand Down Expand Up @@ -222,4 +227,18 @@
.rc-button--full {
width: 100%;
}

.rc-button--cancel {
padding: 0 1rem;

.rc-button-icon {
display: block;
visibility: visible;
}

.rc-button-text {
display: none;
visibility: hidden;
}
}
}
2 changes: 1 addition & 1 deletion app/theme/client/imports/general/base_old.css
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@

& > div {

width: 60%;
width: 55%;
min-height: 2.5rem;

& label {
Expand Down
1 change: 0 additions & 1 deletion app/theme/client/imports/general/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@
&__content {

display: flex;
overflow-y: auto;
flex-direction: column;

flex: 1;
Expand Down
7 changes: 6 additions & 1 deletion app/ui-account/client/accountPreferences.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ <h1>{{_ "Privacy"}}</h1>
{{/each}}
</select>
</div>
<button class="rc-button rc-button--cancel setting-action js-dont-ask-remove">{{_ "Remove"}}</button>
<button text="{{_ 'Remove'}}" class="rc-button rc-button--cancel setting-action js-dont-ask-remove">
<!-- will be displayed only if width < 780px -->
<i class="rc-button-icon icon-ccw color-error-contrast"></i>
<!-- will be displayed if width >= 780px -->
<div class="rc-button-text">{{_ "Remove"}}</div>
</button>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
<th width="30%">
<div class="table-fake-th">{{_ "API_Personal_Access_Token_Name"}}</div>
</th>
<th>
<th width="30%">
<div class="table-fake-th">{{_ "Created_at"}}</div>
</th>
<th>
<th width="30%">
<div class="table-fake-th">{{_ "Last_token_part"}}</div>
</th>
<th></th>
<th width="10%"></th>
</tr>
</thead>
<tbody>
Expand Down

0 comments on commit 57bf4eb

Please sign in to comment.