Merge pull request #740 from asaadmahmoodspin/ui-improvements
UI Modifications for multiple tickets
Этот коммит содержится в:
@@ -55,7 +55,7 @@ export default class ChannelHeader extends React.Component {
|
|||||||
if (!Utils.areStatesEqual(newState, this.state)) {
|
if (!Utils.areStatesEqual(newState, this.state)) {
|
||||||
this.setState(newState);
|
this.setState(newState);
|
||||||
}
|
}
|
||||||
$('.channel-header__info .description').popover({placement: 'bottom', trigger: 'hover click', html: true, delay: {show: 500, hide: 500}});
|
$('.channel-header__info .description').popover({placement: 'bottom', trigger: 'hover', html: true, delay: {show: 500, hide: 500}});
|
||||||
}
|
}
|
||||||
onSocketChange(msg) {
|
onSocketChange(msg) {
|
||||||
if (msg.action === 'new_user') {
|
if (msg.action === 'new_user') {
|
||||||
|
|||||||
@@ -90,11 +90,12 @@ export default class ChannelLoader extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Setup global mouse events */
|
/* Setup global mouse events */
|
||||||
$('body').on('click.userpopover', function popOver(e) {
|
$('body').on('click', function hidePopover(e) {
|
||||||
if ($(e.target).attr('data-toggle') !== 'popover' &&
|
$('[data-toggle="popover"]').each(function eachPopover() {
|
||||||
$(e.target).parents('.popover.in').length === 0) {
|
if (!$(this).is(e.target) && $(this).has(e.target).length === 0 && $('.popover').has(e.target).length === 0) {
|
||||||
$('.user-popover').popover('hide');
|
$(this).popover('hide');
|
||||||
}
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$('body').on('mouseenter mouseleave', '.post', function mouseOver(ev) {
|
$('body').on('mouseenter mouseleave', '.post', function mouseOver(ev) {
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ export default class NewChannelModal extends React.Component {
|
|||||||
<span>
|
<span>
|
||||||
<Modal
|
<Modal
|
||||||
show={this.props.show}
|
show={this.props.show}
|
||||||
|
bsSize='large'
|
||||||
onHide={this.props.onModalDismissed}
|
onHide={this.props.onModalDismissed}
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
@@ -122,7 +123,7 @@ export default class NewChannelModal extends React.Component {
|
|||||||
/>
|
/>
|
||||||
{displayNameError}
|
{displayNameError}
|
||||||
<p className='input__help dark'>
|
<p className='input__help dark'>
|
||||||
{'Channel URL: ' + prettyTeamURL + this.props.channelData.name + ' ('}
|
{'URL: ' + prettyTeamURL + this.props.channelData.name + ' ('}
|
||||||
<a
|
<a
|
||||||
href='#'
|
href='#'
|
||||||
onClick={this.props.onChangeURLPressed}
|
onClick={this.props.onChangeURLPressed}
|
||||||
|
|||||||
@@ -6,6 +6,10 @@ var client = require('../utils/client.jsx');
|
|||||||
var utils = require('../utils/utils.jsx');
|
var utils = require('../utils/utils.jsx');
|
||||||
|
|
||||||
export default class SidebarRightMenu extends React.Component {
|
export default class SidebarRightMenu extends React.Component {
|
||||||
|
componentDidMount() {
|
||||||
|
$('.sidebar--left .dropdown-menu').perfectScrollbar();
|
||||||
|
}
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
|
|||||||
@@ -955,7 +955,8 @@ export function getTeamURLFromAddressBar() {
|
|||||||
|
|
||||||
export function getShortenedTeamURL() {
|
export function getShortenedTeamURL() {
|
||||||
const teamURL = getTeamURLFromAddressBar();
|
const teamURL = getTeamURLFromAddressBar();
|
||||||
if (teamURL.length > 24) {
|
if (teamURL.length > 35) {
|
||||||
return teamURL.substring(0, 10) + '...' + teamURL.substring(teamURL.length - 12, teamURL.length) + '/';
|
return teamURL.substring(0, 10) + '...' + teamURL.substring(teamURL.length - 12, teamURL.length) + '/';
|
||||||
}
|
}
|
||||||
|
return teamURL + '/';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
.input__help {
|
.input__help {
|
||||||
color: #777;
|
color: #777;
|
||||||
margin: 10px 0 0 10px;
|
margin: 10px 0 0 10px;
|
||||||
|
word-break: break-word;
|
||||||
&.dark {
|
&.dark {
|
||||||
color: #222;
|
color: #222;
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user