Этот коммит содержится в:
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 ( return (
<div> <div>
<Modal <Modal
dialogClassName='more-modal more-modal--action' dialogClassName='more-modal'
show={this.state.show} show={this.state.show}
onHide={this.onHide} onHide={this.onHide}
onExited={this.props.onModalDismissed} onExited={this.props.onModalDismissed}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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