Multiple UI changes
Этот коммит содержится в:
@@ -34,7 +34,7 @@ module.exports = React.createClass({
|
||||
var copyLinkConfirm = null;
|
||||
|
||||
if (this.state.copiedLink) {
|
||||
copyLinkConfirm = <p className='copy-link-confirm'>Link copied to clipboard.</p>;
|
||||
copyLinkConfirm = <p className='alert alert-success copy-link-confirm'><i className="fa fa-check"></i> Link copied to clipboard.</p>;
|
||||
}
|
||||
|
||||
if (currentUser != null) {
|
||||
|
||||
@@ -42,6 +42,9 @@ module.exports = React.createClass({
|
||||
utils.changeCss('.modal .modal-header', 'background: ' + user.props.theme+';');
|
||||
utils.changeCss('.mention', 'background: ' + user.props.theme+';');
|
||||
utils.changeCss('.mention-link', 'color: ' + user.props.theme+';');
|
||||
utils.changeCss('.mention-link', 'color: ' + user.props.theme+';');
|
||||
utils.changeCss('.mention-link', 'color: ' + user.props.theme+';');
|
||||
utils.changeCss('.search-item-container:hover', 'background: ' + utils.changeOpacity(user.props.theme, 0.05) +';');
|
||||
utils.changeCss('@media(max-width: 768px){.search-bar__container', 'background: ' + user.props.theme+';}');
|
||||
}
|
||||
if (user.props.theme != '#000000' && user.props.theme != '#585858') {
|
||||
|
||||
@@ -363,8 +363,8 @@ module.exports = React.createClass({
|
||||
<li key={channel.name} ref={channel.name} className={linkClass}>
|
||||
<a className={'sidebar-channel ' + titleClass} href={href} onClick={clickHandler}>
|
||||
{status}
|
||||
{badge}
|
||||
{channel.display_name}
|
||||
{badge}
|
||||
</a>
|
||||
</li>
|
||||
);
|
||||
|
||||
@@ -855,6 +855,20 @@ module.exports.changeColor =function(col, amt) {
|
||||
return (usePound?"#":"") + String("000000" + (g | (b << 8) | (r << 16)).toString(16)).slice(-6);
|
||||
};
|
||||
|
||||
module.exports.changeOpacity = function(oldColor, opacity) {
|
||||
|
||||
var col = oldColor;
|
||||
if (col[0] === '#') {
|
||||
col = col.slice(1);
|
||||
}
|
||||
|
||||
var r = parseInt(col.substring(0, 2), 16);
|
||||
var g = parseInt(col.substring(2, 4), 16);
|
||||
var b = parseInt(col.substring(4, 6), 16);
|
||||
|
||||
return 'rgba(' + r + ',' + g + ',' + b + ',' + opacity + ')';
|
||||
};
|
||||
|
||||
module.exports.getFullName = function(user) {
|
||||
if (user.first_name && user.last_name) {
|
||||
return user.first_name + " " + user.last_name;
|
||||
|
||||
Ссылка в новой задаче
Block a user