Ui fixes (#4917)
* PLT-5089 - Updating modal buttons * PLT-5090 - Full name and position overflow * PLT-5093 - Updating modal lists
Этот коммит содержится в:
коммит произвёл
enahum
родитель
3d15b3ec50
Коммит
7a14a05a9c
@@ -168,7 +168,7 @@ export default class ChannelMembersModal extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Modal
|
<Modal
|
||||||
dialogClassName='more-modal'
|
dialogClassName='more-modal more-modal--action'
|
||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.onHide}
|
onHide={this.onHide}
|
||||||
onExited={this.props.onModalDismissed}
|
onExited={this.props.onModalDismissed}
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ export default class MoreChannels extends React.Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
dialogClassName='more-modal more-public-channels'
|
dialogClassName='more-modal more-modal--action'
|
||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.handleHide}
|
onHide={this.handleHide}
|
||||||
onExited={this.handleExit}
|
onExited={this.handleExit}
|
||||||
|
|||||||
@@ -195,7 +195,9 @@ 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
|
||||||
@@ -226,7 +228,7 @@ export default class MoreDirectChannels extends React.Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
dialogClassName='more-modal more-direct-channels'
|
dialogClassName={'more-modal more-direct-channels ' + memberClass}
|
||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.handleHide}
|
onHide={this.handleHide}
|
||||||
onExited={this.handleExit}
|
onExited={this.handleExit}
|
||||||
|
|||||||
@@ -152,34 +152,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(
|
||||||
<div
|
<OverlayTrigger
|
||||||
data-toggle='tooltip'
|
delayShow={Constants.WEBRTC_TIME_DELAY}
|
||||||
title={fullname}
|
placement='top'
|
||||||
key='user-popover-fullname'
|
overlay={<Tooltip id='fullNameTooltip'>{fullname}</Tooltip>}
|
||||||
>
|
>
|
||||||
<p
|
<div
|
||||||
className='text-nowrap'
|
className='overflow--ellipsis text-nowrap padding-bottom'
|
||||||
>
|
>
|
||||||
{fullname}
|
{fullname}
|
||||||
</p>
|
</div>
|
||||||
</div>
|
</OverlayTrigger>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
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(
|
||||||
<div
|
<OverlayTrigger
|
||||||
data-toggle='tooltip'
|
delayShow={Constants.WEBRTC_TIME_DELAY}
|
||||||
title={position}
|
placement='top'
|
||||||
key='user-popover-position'
|
overlay={<Tooltip id='positionTooltip'>{position}</Tooltip>}
|
||||||
>
|
>
|
||||||
<p
|
<div
|
||||||
className='text-nowrap'
|
className='overflow--ellipsis text-nowrap padding-bottom'
|
||||||
>
|
>
|
||||||
{position}
|
{position}
|
||||||
</p>
|
</div>
|
||||||
</div>
|
</OverlayTrigger>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -180,7 +180,9 @@ export default class SearchableChannelList extends React.Component {
|
|||||||
ref='channelList'
|
ref='channelList'
|
||||||
className='more-modal__list'
|
className='more-modal__list'
|
||||||
>
|
>
|
||||||
{listContent}
|
<div>
|
||||||
|
{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'
|
className='btn btn-sm btn-primary pull-right'
|
||||||
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 theme'
|
className='btn btn-sm pull-right'
|
||||||
href='#'
|
href='#'
|
||||||
onClick={this.props.updateSection}
|
onClick={this.props.updateSection}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -26,6 +26,11 @@ 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;
|
||||||
|
|||||||
@@ -464,24 +464,10 @@
|
|||||||
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;
|
||||||
@@ -496,7 +482,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.filter-row {
|
.filter-row {
|
||||||
@include clearfix;
|
|
||||||
margin: 5px 0 10px;
|
margin: 5px 0 10px;
|
||||||
width: 300px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
@@ -561,7 +546,11 @@
|
|||||||
.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;
|
||||||
@@ -606,6 +595,7 @@
|
|||||||
.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;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -628,8 +618,7 @@
|
|||||||
.more-modal__row {
|
.more-modal__row {
|
||||||
border-bottom: 1px solid $light-gray;
|
border-bottom: 1px solid $light-gray;
|
||||||
display: flex;
|
display: flex;
|
||||||
min-height: 70px;
|
padding: 10px 15px;
|
||||||
padding: 8px 15px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
@@ -650,16 +639,15 @@
|
|||||||
.filtered-user-list {
|
.filtered-user-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
height: calc(90vh - 120px);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
.filter-row {
|
> div {
|
||||||
flex-grow: 0;
|
flex: 1;
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-list {
|
.more-modal__list {
|
||||||
flex-grow: 1;
|
flex-grow: 500;
|
||||||
flex-shrink: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-button {
|
.filter-button {
|
||||||
@@ -669,9 +657,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.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 {
|
||||||
|
|||||||
@@ -1206,6 +1206,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@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 {
|
||||||
@@ -1213,10 +1223,6 @@
|
|||||||
max-height: calc(100vh - 62px);
|
max-height: calc(100vh - 62px);
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.more-modal__list {
|
|
||||||
max-height: calc(100vh - 230px);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1377,15 +1383,14 @@
|
|||||||
@media screen and (max-width: 550px) {
|
@media screen and (max-width: 550px) {
|
||||||
.app__body {
|
.app__body {
|
||||||
.more-modal {
|
.more-modal {
|
||||||
.filter-row {
|
&.more-system-members {
|
||||||
width: 100%;
|
.filter-row {
|
||||||
|
min-height: 80px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.more-direct-channels {
|
&.more-direct-channels {
|
||||||
.filter-row {
|
|
||||||
padding-bottom: 50px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.member-show {
|
.member-show {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -1443,16 +1448,6 @@
|
|||||||
|
|
||||||
.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 {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user