Merge pull request #2152 from asaadmahmoodspin/ui-fixes
Multiple UI Improvements
Этот коммит содержится в:
@@ -353,7 +353,7 @@ export default class UserItem extends React.Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<tr>
|
<tr>
|
||||||
<td className='row member-div'>
|
<td className='row member-div padding--equal'>
|
||||||
<img
|
<img
|
||||||
className='post-profile-img pull-left'
|
className='post-profile-img pull-left'
|
||||||
src={`/api/v1/users/${user.id}/image?time=${user.update_at}&${Utils.getSessionIndex()}`}
|
src={`/api/v1/users/${user.id}/image?time=${user.update_at}&${Utils.getSessionIndex()}`}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class ChannelInfoModal extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className='col-sm-9'>{channelURL}</div>
|
<div className='col-sm-9'>{channelURL}</div>
|
||||||
</div>
|
</div>
|
||||||
<div className='row'>
|
<div className='row form-group'>
|
||||||
<div className='col-sm-3 info__label'>
|
<div className='col-sm-3 info__label'>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='channel_info.id'
|
id='channel_info.id'
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ const ActionTypes = Constants.ActionTypes;
|
|||||||
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
|
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
|
||||||
|
|
||||||
import {FormattedMessage} from 'mm-intl';
|
import {FormattedMessage} from 'mm-intl';
|
||||||
|
import attachFastClick from 'fastclick';
|
||||||
|
|
||||||
const Popover = ReactBootstrap.Popover;
|
const Popover = ReactBootstrap.Popover;
|
||||||
const OverlayTrigger = ReactBootstrap.OverlayTrigger;
|
const OverlayTrigger = ReactBootstrap.OverlayTrigger;
|
||||||
@@ -59,6 +60,7 @@ export default class Navbar extends React.Component {
|
|||||||
ChannelStore.addChangeListener(this.onChange);
|
ChannelStore.addChangeListener(this.onChange);
|
||||||
ChannelStore.addExtraInfoChangeListener(this.onChange);
|
ChannelStore.addExtraInfoChangeListener(this.onChange);
|
||||||
$('.inner__wrap').click(this.hideSidebars);
|
$('.inner__wrap').click(this.hideSidebars);
|
||||||
|
attachFastClick(document.body);
|
||||||
}
|
}
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
ChannelStore.removeChangeListener(this.onChange);
|
ChannelStore.removeChangeListener(this.onChange);
|
||||||
|
|||||||
@@ -486,13 +486,9 @@ class GeneralTab extends React.Component {
|
|||||||
inputs.push(
|
inputs.push(
|
||||||
<div key='teamInviteSetting'>
|
<div key='teamInviteSetting'>
|
||||||
<div className='row'>
|
<div className='row'>
|
||||||
<label className='col-sm-5 control-label'>
|
<label className='col-sm-5 control-label visible-xs-block'>
|
||||||
<FormattedMessage
|
|
||||||
id='general_tab.codeTitle'
|
|
||||||
defaultMessage='Invite Code'
|
|
||||||
/>
|
|
||||||
</label>
|
</label>
|
||||||
<div className='col-sm-7'>
|
<div className='col-sm-12'>
|
||||||
<input
|
<input
|
||||||
className='form-control'
|
className='form-control'
|
||||||
type='text'
|
type='text'
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ export default class ManageIncomingHooks extends React.Component {
|
|||||||
<div key='addIncomingHook'>
|
<div key='addIncomingHook'>
|
||||||
<FormattedHTMLMessage
|
<FormattedHTMLMessage
|
||||||
id='user.settings.hooks_in.description'
|
id='user.settings.hooks_in.description'
|
||||||
defaultMessage='Create webhook URLs for use in external integrations. Please see<a href="http://mattermost.org/webhooks" target="_blank">http://mattermost.org/webhooks</a> to learn more.'
|
defaultMessage='Create webhook URLs for use in external integrations. Please see <a href="http://mattermost.org/webhooks" target="_blank">http://mattermost.org/webhooks</a> to learn more.'
|
||||||
/>
|
/>
|
||||||
<div><label className='control-label padding-top x2'>
|
<div><label className='control-label padding-top x2'>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"autolinker": "0.22.0",
|
"autolinker": "0.22.0",
|
||||||
|
"fastclick": "^1.0.6",
|
||||||
"flux": "2.1.1",
|
"flux": "2.1.1",
|
||||||
"highlight.js": "8.9.1",
|
"highlight.js": "8.9.1",
|
||||||
"keymirror": "0.1.1",
|
"keymirror": "0.1.1",
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ class MattermostMarkdownRenderer extends marked.Renderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
table(header, body) {
|
table(header, body) {
|
||||||
return `<table class="markdown__table"><thead>${header}</thead><tbody>${body}</tbody></table>`;
|
return `<div class="table-responsive"><table class="markdown__table"><thead>${header}</thead><tbody>${body}</tbody></table></div>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
listitem(text) {
|
listitem(text) {
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post-body--code__language {
|
.post-body--code__language {
|
||||||
|
-webkit-transform: translate3d(0,0,0);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
|||||||
@@ -7,6 +7,67 @@
|
|||||||
padding: 20px 15px;
|
padding: 20px 15px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
.more-table {
|
||||||
|
margin: 0;
|
||||||
|
table-layout: fixed;
|
||||||
|
p {
|
||||||
|
font-size: 0.9em;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
@include opacity(0.8);
|
||||||
|
margin: 5px 0;
|
||||||
|
}
|
||||||
|
.profile-img {
|
||||||
|
-moz-border-radius: 50px;
|
||||||
|
-webkit-border-radius: 50px;
|
||||||
|
border-radius: 50px;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
.more-name {
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.95em;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.more-description {
|
||||||
|
@include opacity(0.7);
|
||||||
|
display: block;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
tbody {
|
||||||
|
> tr {
|
||||||
|
&:hover td {
|
||||||
|
background: #f7f7f7;
|
||||||
|
}
|
||||||
|
&:first-child {
|
||||||
|
td {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
td {
|
||||||
|
width: 100%;
|
||||||
|
white-space: nowrap;
|
||||||
|
@include legacy-pie-clearfix;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
padding: 8px 8px 8px 15px;
|
||||||
|
&.padding--equal {
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
&.td--action {
|
||||||
|
text-align: right;
|
||||||
|
padding: 8px 15px 8px 8px;
|
||||||
|
width: 80px;
|
||||||
|
vertical-align: middle;
|
||||||
|
position: relative;
|
||||||
|
&.lg {
|
||||||
|
width: 110px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.modal {
|
.modal {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
color: #333;
|
color: #333;
|
||||||
@@ -148,64 +209,6 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.more-table {
|
|
||||||
margin: 0;
|
|
||||||
table-layout: fixed;
|
|
||||||
p {
|
|
||||||
font-size: 0.9em;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
@include opacity(0.8);
|
|
||||||
margin: 5px 0;
|
|
||||||
}
|
|
||||||
.profile-img {
|
|
||||||
-moz-border-radius: 50px;
|
|
||||||
-webkit-border-radius: 50px;
|
|
||||||
border-radius: 50px;
|
|
||||||
margin-right: 8px;
|
|
||||||
}
|
|
||||||
.more-name {
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 0.95em;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
|
||||||
.more-description {
|
|
||||||
@include opacity(0.7);
|
|
||||||
display: block;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
|
||||||
tbody {
|
|
||||||
> tr {
|
|
||||||
&:hover td {
|
|
||||||
background: #f7f7f7;
|
|
||||||
}
|
|
||||||
&:first-child {
|
|
||||||
td {
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
td {
|
|
||||||
width: 100%;
|
|
||||||
white-space: nowrap;
|
|
||||||
@include legacy-pie-clearfix;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
padding: 8px 8px 8px 15px;
|
|
||||||
&.td--action {
|
|
||||||
text-align: right;
|
|
||||||
padding: 8px 15px 8px 8px;
|
|
||||||
width: 80px;
|
|
||||||
vertical-align: middle;
|
|
||||||
position: relative;
|
|
||||||
&.lg {
|
|
||||||
width: 110px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.modal-image {
|
.modal-image {
|
||||||
position:relative;
|
position:relative;
|
||||||
width:100%;
|
width:100%;
|
||||||
|
|||||||
@@ -776,6 +776,24 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 480px) {
|
@media screen and (max-width: 480px) {
|
||||||
|
.settings-modal {
|
||||||
|
|
||||||
|
.settings-table {
|
||||||
|
|
||||||
|
.security-links {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
display: block;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.tip-overlay.tip-overlay--sidebar {
|
.tip-overlay.tip-overlay--sidebar {
|
||||||
min-height: 350px;
|
min-height: 350px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -207,6 +207,7 @@
|
|||||||
.section-title {
|
.section-title {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
padding-right: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-edit {
|
.section-edit {
|
||||||
|
|||||||
@@ -105,7 +105,7 @@
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
@include opacity(0.5);
|
@include opacity(0.9);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user