Этот коммит содержится в:
Joram Wilander
2017-01-04 14:12:35 -05:00
коммит произвёл Harrison Healey
родитель 635628cf30
Коммит eae6b13fca
9 изменённых файлов: 69 добавлений и 58 удалений

Просмотреть файл

@@ -168,7 +168,7 @@ export default class ChannelMembersModal extends React.Component {
return (
<div>
<Modal
dialogClassName='more-modal more-modal--action'
dialogClassName='more-modal'
show={this.state.show}
onHide={this.onHide}
onExited={this.props.onModalDismissed}

Просмотреть файл

@@ -159,7 +159,7 @@ export default class MoreChannels extends React.Component {
return (
<Modal
dialogClassName='more-modal more-modal--action'
dialogClassName='more-modal more-public-channels'
show={this.state.show}
onHide={this.handleHide}
onExited={this.handleExit}

Просмотреть файл

@@ -195,9 +195,7 @@ export default class MoreDirectChannels extends React.Component {
render() {
let teamToggle;
let memberClass = '';
if (global.window.mm_config.RestrictDirectMessage === 'any') {
memberClass = 'more-system-members';
teamToggle = (
<div className='member-select__container'>
<select
@@ -228,7 +226,7 @@ export default class MoreDirectChannels extends React.Component {
return (
<Modal
dialogClassName={'more-modal more-direct-channels ' + memberClass}
dialogClassName='more-modal more-direct-channels'
show={this.state.show}
onHide={this.handleHide}
onExited={this.handleExit}

Просмотреть файл

@@ -185,34 +185,34 @@ export default class ProfilePopover extends React.Component {
const fullname = Utils.getFullName(this.props.user);
if (fullname) {
dataContent.push(
<OverlayTrigger
delayShow={Constants.WEBRTC_TIME_DELAY}
placement='top'
overlay={<Tooltip id='fullNameTooltip'>{fullname}</Tooltip>}
<div
data-toggle='tooltip'
title={fullname}
key='user-popover-fullname'
>
<div
className='overflow--ellipsis text-nowrap padding-bottom'
<p
className='text-nowrap'
>
{fullname}
</div>
</OverlayTrigger>
</p>
</div>
);
}
if (this.props.user.position) {
const position = this.props.user.position.substring(0, Constants.MAX_POSITION_LENGTH);
dataContent.push(
<OverlayTrigger
delayShow={Constants.WEBRTC_TIME_DELAY}
placement='top'
overlay={<Tooltip id='positionTooltip'>{position}</Tooltip>}
<div
data-toggle='tooltip'
title={position}
key='user-popover-position'
>
<div
className='overflow--ellipsis text-nowrap padding-bottom'
<p
className='text-nowrap'
>
{position}
</div>
</OverlayTrigger>
</p>
</div>
);
}

Просмотреть файл

@@ -180,9 +180,7 @@ export default class SearchableChannelList extends React.Component {
ref='channelList'
className='more-modal__list'
>
<div>
{listContent}
</div>
{listContent}
</div>
<div className='filter-controls'>
{previousButton}

Просмотреть файл

@@ -49,7 +49,7 @@ export default class SettingItemMax extends React.Component {
submit = (
<input
type='submit'
className='btn btn-sm btn-primary pull-right'
className='btn btn-sm btn-primary'
href='#'
onClick={this.props.submit}
value={Utils.localizeMessage('setting_item_max.save', 'Save')}
@@ -88,7 +88,7 @@ export default class SettingItemMax extends React.Component {
{clientError}
{submit}
<a
className='btn btn-sm pull-right'
className='btn btn-sm theme'
href='#'
onClick={this.props.updateSection}
>

Просмотреть файл

@@ -26,11 +26,6 @@ body {
word-break: break-all;
}
.overflow--ellipsis {
overflow: hidden;
text-overflow: ellipsis;
}
.fa {
&.fa-margin--left {
margin-left: 2px;

Просмотреть файл

@@ -460,10 +460,24 @@
float: right;
margin-top: 5px;
}
.more-modal__list {
max-height: calc(100vh - 270px);
}
}
}
.more-modal {
.more-modal__list {
height: 100vh;
max-height: calc(100vh - 340px);
}
&.more-direct-channels {
.more-modal__list {
max-height: calc(100vh - 325px);
}
}
.user-list {
margin-top: 10px;
@@ -478,6 +492,7 @@
}
.filter-row {
@include clearfix;
margin: 5px 0 10px;
width: 300px;
}
@@ -542,11 +557,7 @@
.more-modal__list {
display: flex;
flex-direction: column;
> div {
min-height: 100%;
overflow: auto;
}
overflow: auto;
.popover & {
font-size: .95em;
@@ -591,7 +602,6 @@
.more-modal__actions {
flex-grow: 0;
flex-shrink: 0;
margin: 5px 0 10px;
padding-left: 20px;
}
@@ -614,7 +624,8 @@
.more-modal__row {
border-bottom: 1px solid $light-gray;
display: flex;
padding: 10px 15px;
min-height: 70px;
padding: 8px 15px;
}
p {
@@ -635,15 +646,16 @@
.filtered-user-list {
display: flex;
flex-direction: column;
height: calc(90vh - 120px);
width: 100%;
> div {
flex: 1;
.filter-row {
flex-grow: 0;
flex-shrink: 0;
}
.more-modal__list {
flex-grow: 500;
.user-list {
flex-grow: 1;
flex-shrink: 1;
}
.filter-button {
@@ -653,6 +665,9 @@
}
.filter-controls {
@include clearfix;
flex-grow: 0;
flex-shrink: 0;
padding: 1em 1.5em 0;
.filter-control__next {

Просмотреть файл

@@ -1214,16 +1214,6 @@
}
@media screen and (max-width: 640px) {
.filtered-user-list {
height: calc(100vh - 80px);
}
.more-modal--action {
.filtered-user-list {
height: calc(100vh - 110px);
}
}
.app__body {
.modal {
.more-modal {
@@ -1231,6 +1221,10 @@
max-height: calc(100vh - 62px);
padding-bottom: 5px;
}
.more-modal__list {
max-height: calc(100vh - 230px);
}
}
}
@@ -1391,14 +1385,15 @@
@media screen and (max-width: 550px) {
.app__body {
.more-modal {
&.more-system-members {
.filter-row {
min-height: 80px;
width: 100%;
}
.filter-row {
width: 100%;
}
&.more-direct-channels {
.filter-row {
padding-bottom: 50px;
}
.member-show {
display: none;
}
@@ -1456,6 +1451,16 @@
.app__body {
.modal {
&.more-channel__modal {
.more-modal__list {
max-height: calc(100vh - 250px);
}
.modal-body {
padding-bottom: 35px;
}
}
.settings-modal {
&.display--content {
.modal-body {