Merge pull request #1617 from asaadmahmoodspin/ui-improvements
Multiple UI Improvements
Этот коммит содержится в:
@@ -32,7 +32,7 @@ export default class AccessHistoryModal extends React.Component {
|
|||||||
onShow() {
|
onShow() {
|
||||||
AsyncClient.getAudits();
|
AsyncClient.getAudits();
|
||||||
|
|
||||||
$(ReactDOM.findDOMNode(this.refs.modalBody)).css('max-height', $(window).height() - 300);
|
$(ReactDOM.findDOMNode(this.refs.modalBody)).css('max-height', $(window).height() - 50);
|
||||||
if ($(window).width() > 768) {
|
if ($(window).width() > 768) {
|
||||||
$(ReactDOM.findDOMNode(this.refs.modalBody)).perfectScrollbar();
|
$(ReactDOM.findDOMNode(this.refs.modalBody)).perfectScrollbar();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export default class ActivityLogModal extends React.Component {
|
|||||||
onShow() {
|
onShow() {
|
||||||
AsyncClient.getSessions();
|
AsyncClient.getSessions();
|
||||||
|
|
||||||
$(ReactDOM.findDOMNode(this.refs.modalBody)).css('max-height', $(window).height() - 300);
|
$(ReactDOM.findDOMNode(this.refs.modalBody)).css('max-height', $(window).height() - 50);
|
||||||
if ($(window).width() > 768) {
|
if ($(window).width() > 768) {
|
||||||
$(ReactDOM.findDOMNode(this.refs.modalBody)).perfectScrollbar();
|
$(ReactDOM.findDOMNode(this.refs.modalBody)).perfectScrollbar();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,7 +71,8 @@ export default class CenterPanel extends React.Component {
|
|||||||
href=''
|
href=''
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
>
|
>
|
||||||
{'You are viewing the Archives. Click here to jump to recent messages.'}
|
{'You are viewing the Archives. Click here to jump to recent messages. '}
|
||||||
|
{<i className='fa fa-arrow-down'></i>}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ export default class InviteMemberModal extends React.Component {
|
|||||||
|
|
||||||
componentDidUpdate(prevProps, prevState) {
|
componentDidUpdate(prevProps, prevState) {
|
||||||
if (!prevState.show && this.state.show) {
|
if (!prevState.show && this.state.show) {
|
||||||
$(ReactDOM.findDOMNode(this.refs.modalBody)).css('max-height', $(window).height() - 300);
|
$(ReactDOM.findDOMNode(this.refs.modalBody)).css('max-height', $(window).height() - 50);
|
||||||
if ($(window).width() > 768) {
|
if ($(window).width() > 768) {
|
||||||
$(ReactDOM.findDOMNode(this.refs.modalBody)).perfectScrollbar();
|
$(ReactDOM.findDOMNode(this.refs.modalBody)).perfectScrollbar();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ export default class MoreDirectChannels extends React.Component {
|
|||||||
|
|
||||||
componentDidUpdate(prevProps) {
|
componentDidUpdate(prevProps) {
|
||||||
if (!prevProps.show && this.props.show) {
|
if (!prevProps.show && this.props.show) {
|
||||||
$(ReactDOM.findDOMNode(this.refs.userList)).css('max-height', $(window).height() - 300);
|
$(ReactDOM.findDOMNode(this.refs.userList)).css('max-height', $(window).height() - 50);
|
||||||
if ($(window).width() > 768) {
|
if ($(window).width() > 768) {
|
||||||
$(ReactDOM.findDOMNode(this.refs.userList)).perfectScrollbar();
|
$(ReactDOM.findDOMNode(this.refs.userList)).perfectScrollbar();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export default class SearchResultsItem extends React.Component {
|
|||||||
className='search-item__jump'
|
className='search-item__jump'
|
||||||
onClick={this.handleClick}
|
onClick={this.handleClick}
|
||||||
>
|
>
|
||||||
{'[Jump]'}
|
{<i className='fa fa-mail-reply'></i>}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export default class TeamMembersModal extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
$(ReactDOM.findDOMNode(this.refs.modalBody)).css('max-height', $(window).height() - 300);
|
$(ReactDOM.findDOMNode(this.refs.modalBody)).css('max-height', $(window).height() - 50);
|
||||||
if ($(window).width() > 768) {
|
if ($(window).width() > 768) {
|
||||||
$(ReactDOM.findDOMNode(this.refs.modalBody)).perfectScrollbar();
|
$(ReactDOM.findDOMNode(this.refs.modalBody)).perfectScrollbar();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ export default class UserSettingsModal extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleShow() {
|
handleShow() {
|
||||||
$(ReactDOM.findDOMNode(this.refs.modalBody)).css('max-height', $(window).height() - 300);
|
$(ReactDOM.findDOMNode(this.refs.modalBody)).css('max-height', $(window).height() - 50);
|
||||||
if ($(window).width() > 768) {
|
if ($(window).width() > 768) {
|
||||||
$(ReactDOM.findDOMNode(this.refs.modalBody)).perfectScrollbar();
|
$(ReactDOM.findDOMNode(this.refs.modalBody)).perfectScrollbar();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -681,7 +681,11 @@ export function applyTheme(theme) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (theme.mentionHighlightBg) {
|
if (theme.mentionHighlightBg) {
|
||||||
changeCss('.mention-highlight, .search-highlight', 'background:' + theme.mentionHighlightBg, 1);
|
changeCss('.mention-highlight, .search-highlight, #archive-link-home', 'background:' + theme.mentionHighlightBg, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (theme.mentionHighlightBg) {
|
||||||
|
changeCss('.post.post--highlight, #archive-link-home', 'background:' + changeOpacity(theme.mentionHighlightBg, 0.5), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.mentionHighlightLink) {
|
if (theme.mentionHighlightLink) {
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ a:focus, a:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
-webkit-appearance: none;
|
-moz-appearance:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-control {
|
.form-control {
|
||||||
|
|||||||
@@ -18,30 +18,29 @@
|
|||||||
margin-left: 220px;
|
margin-left: 220px;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
@include display-flex;
|
@include display-flex;
|
||||||
@include flex-direction(column);
|
@include flex-direction(column);
|
||||||
.channel__wrap & {
|
.channel__wrap & {
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#post-create {
|
#post-create {
|
||||||
@include flex(0 0 auto);
|
@include flex(0 0 auto);
|
||||||
background: #fff;
|
background: #fff;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
#archive-link-home {
|
#archive-link-home {
|
||||||
@include flex(0 0 auto);
|
@include flex(0 0 auto);
|
||||||
background: #fff;
|
|
||||||
width: 100%;
|
|
||||||
min-height: 50px;
|
|
||||||
z-index: 3;
|
|
||||||
background-color: beige;
|
|
||||||
text-align: center;
|
|
||||||
vertical-align: middle;
|
|
||||||
padding-top: 10px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 13px;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-list {
|
.post-list {
|
||||||
|
|||||||
@@ -599,6 +599,10 @@ body.ios {
|
|||||||
@include legacy-pie-clearfix;
|
@include legacy-pie-clearfix;
|
||||||
width: calc(100% - 70px);
|
width: calc(100% - 70px);
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-height: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
padding: 5px 0 0 20px;
|
padding: 5px 0 0 20px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -296,6 +296,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.section-min:hover {
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
.no-padding--left {
|
.no-padding--left {
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#channel-header .search-bar__container {
|
#channel-header .search-bar__container {
|
||||||
padding: 0 8px 0 3px;
|
padding: 0 8px 0 3px;
|
||||||
}
|
}
|
||||||
.search-bar__container {
|
.search-bar__container {
|
||||||
padding: 12px 8px 0 0;
|
padding: 12px 8px 0 0;
|
||||||
@include flex(0 0 56px);
|
@include flex(0 0 56px);
|
||||||
}
|
}
|
||||||
.search__clear {
|
.search__clear {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -107,7 +107,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.search-item__jump {
|
.search-item__jump {
|
||||||
margin-left: 10px;
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-item-time {
|
.search-item-time {
|
||||||
|
|||||||
@@ -12,6 +12,14 @@
|
|||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-body {
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-height: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.sidebar--right__content {
|
.sidebar--right__content {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@include display-flex;
|
@include display-flex;
|
||||||
|
|||||||
@@ -47,17 +47,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.emoticon-suggestion {
|
.emoticon-suggestion {
|
||||||
|
@include clearfix;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 36px;
|
height: 30px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
line-height: 36px;
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.emoticon-suggestion__image {
|
.emoticon-suggestion__image {
|
||||||
width: 32px;
|
width: 20px;
|
||||||
height: 32px;
|
height: 20px;
|
||||||
margin-right: 6px;
|
margin: 6px 6px 0 5px;
|
||||||
padding: 2px;
|
padding: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ window.setup_channel_page({{ .Props }}, {{ .Team }}, {{ .Channel }}, {{ .User }}
|
|||||||
if($(window).height() > 1200){
|
if($(window).height() > 1200){
|
||||||
modals.css('max-height', 1000);
|
modals.css('max-height', 1000);
|
||||||
} else {
|
} else {
|
||||||
modals.css('max-height', $(window).height() - 200);
|
modals.css('max-height', $(window).height() - 50);
|
||||||
}
|
}
|
||||||
modals.perfectScrollbar();
|
modals.perfectScrollbar();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user