PLT-3177 - Fixing ordering for custom themes (#3226)
Fix for bot tag and webhook attachments Adding theme styling for webhooks Removing embed styling Improving margins on compcat view for line breaks
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
0e677f35bb
Коммит
7b99ac0a91
@@ -38,7 +38,7 @@ export default class PostHeader extends React.Component {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
botIndicator = <li className='col col__name bot-indicator'>{Constants.BOT_NAME}</li>;
|
botIndicator = <li className='bot-indicator'>{Constants.BOT_NAME}</li>;
|
||||||
} else if (PostUtils.isSystemMessage(post)) {
|
} else if (PostUtils.isSystemMessage(post)) {
|
||||||
userProfile = (
|
userProfile = (
|
||||||
<UserProfile
|
<UserProfile
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ export default class RhsComment extends React.Component {
|
|||||||
let botIndicator;
|
let botIndicator;
|
||||||
|
|
||||||
if (post.props && post.props.from_webhook) {
|
if (post.props && post.props.from_webhook) {
|
||||||
botIndicator = <li className='col col__name bot-indicator'>{Constants.BOT_NAME}</li>;
|
botIndicator = <li className='bot-indicator'>{Constants.BOT_NAME}</li>;
|
||||||
}
|
}
|
||||||
let loading;
|
let loading;
|
||||||
let postClass = '';
|
let postClass = '';
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export default class SearchResultsItem extends React.Component {
|
|||||||
let botIndicator;
|
let botIndicator;
|
||||||
|
|
||||||
if (post.props && post.props.from_webhook) {
|
if (post.props && post.props.from_webhook) {
|
||||||
botIndicator = <li className='col col__name bot-indicator'>{Constants.BOT_NAME}</li>;
|
botIndicator = <li className='bot-indicator'>{Constants.BOT_NAME}</li>;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -502,13 +502,6 @@ body.ios {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.post__embed-container {
|
|
||||||
img {
|
|
||||||
max-height: 150px;
|
|
||||||
max-width: 150px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown__heading {
|
.markdown__heading {
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
margin: 0 0 7px;
|
margin: 0 0 7px;
|
||||||
@@ -520,6 +513,10 @@ body.ios {
|
|||||||
margin-top: -1px;
|
margin-top: -1px;
|
||||||
padding: 3px 0;
|
padding: 3px 0;
|
||||||
|
|
||||||
|
p + p {
|
||||||
|
margin-top: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
ol,
|
ol,
|
||||||
ul {
|
ul {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|||||||
@@ -86,6 +86,10 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.attachment__image {
|
||||||
|
max-height: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
.attachment__author-name {
|
.attachment__author-name {
|
||||||
@include opacity(.6);
|
@include opacity(.6);
|
||||||
}
|
}
|
||||||
@@ -119,7 +123,8 @@
|
|||||||
|
|
||||||
.attachment__thumb-container {
|
.attachment__thumb-container {
|
||||||
float: right;
|
float: right;
|
||||||
width: 20%;
|
text-align: right;
|
||||||
|
width: 80px;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-height: 75px;
|
max-height: 75px;
|
||||||
|
|||||||
@@ -466,16 +466,16 @@ export default {
|
|||||||
id: 'mentionHighlightBg',
|
id: 'mentionHighlightBg',
|
||||||
uiName: 'Mention Highlight BG'
|
uiName: 'Mention Highlight BG'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
group: 'centerChannelElements',
|
|
||||||
id: 'mentionHighlightLink',
|
|
||||||
uiName: 'Mention Highlight Link'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
group: 'linkAndButtonElements',
|
group: 'linkAndButtonElements',
|
||||||
id: 'linkColor',
|
id: 'linkColor',
|
||||||
uiName: 'Link Color'
|
uiName: 'Link Color'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
group: 'centerChannelElements',
|
||||||
|
id: 'mentionHighlightLink',
|
||||||
|
uiName: 'Mention Highlight Link'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
group: 'linkAndButtonElements',
|
group: 'linkAndButtonElements',
|
||||||
id: 'buttonBg',
|
id: 'buttonBg',
|
||||||
|
|||||||
@@ -718,6 +718,7 @@ export function applyTheme(theme) {
|
|||||||
|
|
||||||
if (theme.linkColor) {
|
if (theme.linkColor) {
|
||||||
changeCss('.app__body a, .app__body a:focus, .app__body a:hover, .app__body .btn, .app__body .btn:focus, .app__body .btn:hover', 'color:' + theme.linkColor, 1);
|
changeCss('.app__body a, .app__body a:focus, .app__body a:hover, .app__body .btn, .app__body .btn:focus, .app__body .btn:hover', 'color:' + theme.linkColor, 1);
|
||||||
|
changeCss('.app__body .attachment .attachment__container', 'border-left-color:' + changeOpacity(theme.linkColor, 0.5), 1);
|
||||||
changeCss('.app__body .post .comment-icon__container, .app__body .post .post__reply', 'fill:' + theme.linkColor, 1);
|
changeCss('.app__body .post .comment-icon__container, .app__body .post .post__reply', 'fill:' + theme.linkColor, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user