Ui improvements (#5948)
* PLT-5849 - Code block wrap on IOS * PLT-5972 - Comment has first line indented * PLT-6048 - Adjusting UI for link previews * PLT-5733 - Adding error text theme option
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
1cbe6e7975
Коммит
4ebc85e05c
@@ -83,6 +83,10 @@ const messages = defineMessages({
|
|||||||
id: 'user.settings.custom_theme.buttonColor',
|
id: 'user.settings.custom_theme.buttonColor',
|
||||||
defaultMessage: 'Button Text'
|
defaultMessage: 'Button Text'
|
||||||
},
|
},
|
||||||
|
errorTextColor: {
|
||||||
|
id: 'user.settings.custom_theme.errorTextColor',
|
||||||
|
defaultMessage: 'Error Text Color'
|
||||||
|
},
|
||||||
mentionHighlightBg: {
|
mentionHighlightBg: {
|
||||||
id: 'user.settings.custom_theme.mentionHighlightBg',
|
id: 'user.settings.custom_theme.mentionHighlightBg',
|
||||||
defaultMessage: 'Mention Highlight BG'
|
defaultMessage: 'Mention Highlight BG'
|
||||||
|
|||||||
@@ -69,8 +69,10 @@
|
|||||||
color: $red;
|
color: $red;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-label {
|
.form__label {
|
||||||
color: inherit;
|
&.control-label {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.radio,
|
&.radio,
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
margin: 0 0 5px 0;
|
margin-top: 5px;
|
||||||
padding: 2px 5px;
|
padding: 2px 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
&.attachment__image--openraph {
|
&.attachment__image--openraph {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
max-height: 80px;
|
max-height: 80px;
|
||||||
max-width: 200px;
|
max-width: 100%;
|
||||||
|
|
||||||
&.loading {
|
&.loading {
|
||||||
height: 80px;
|
height: 80px;
|
||||||
|
|||||||
@@ -76,23 +76,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.move--left {
|
|
||||||
.post {
|
|
||||||
&.post--root,
|
|
||||||
&.other--root {
|
|
||||||
.post__header {
|
|
||||||
padding-right: 70px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.post--comment {
|
|
||||||
.post__header {
|
|
||||||
padding-right: 70px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
@charset 'UTF-8';
|
@charset 'UTF-8';
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
|
.post-code {
|
||||||
|
word-wrap: normal;
|
||||||
|
}
|
||||||
|
|
||||||
.table-responsive {
|
.table-responsive {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,6 +80,10 @@
|
|||||||
|
|
||||||
label {
|
label {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|
||||||
|
&.has-error {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-padding--left {
|
.no-padding--left {
|
||||||
|
|||||||
@@ -449,6 +449,7 @@ export const Constants = {
|
|||||||
linkColor: '#2f81b7',
|
linkColor: '#2f81b7',
|
||||||
buttonBg: '#1dacfc',
|
buttonBg: '#1dacfc',
|
||||||
buttonColor: '#FFFFFF',
|
buttonColor: '#FFFFFF',
|
||||||
|
errorTextColor: '#a94442',
|
||||||
mentionHighlightBg: '#f3e197',
|
mentionHighlightBg: '#f3e197',
|
||||||
mentionHighlightLink: '#2f81b7',
|
mentionHighlightLink: '#2f81b7',
|
||||||
codeTheme: 'github',
|
codeTheme: 'github',
|
||||||
@@ -474,6 +475,7 @@ export const Constants = {
|
|||||||
linkColor: '#2389d7',
|
linkColor: '#2389d7',
|
||||||
buttonBg: '#23A2FF',
|
buttonBg: '#23A2FF',
|
||||||
buttonColor: '#FFFFFF',
|
buttonColor: '#FFFFFF',
|
||||||
|
errorTextColor: '#a94442',
|
||||||
mentionHighlightBg: '#f3e197',
|
mentionHighlightBg: '#f3e197',
|
||||||
mentionHighlightLink: '#2f81b7',
|
mentionHighlightLink: '#2f81b7',
|
||||||
codeTheme: 'github',
|
codeTheme: 'github',
|
||||||
@@ -499,6 +501,7 @@ export const Constants = {
|
|||||||
linkColor: '#A4FFEB',
|
linkColor: '#A4FFEB',
|
||||||
buttonBg: '#4CBBA4',
|
buttonBg: '#4CBBA4',
|
||||||
buttonColor: '#FFFFFF',
|
buttonColor: '#FFFFFF',
|
||||||
|
errorTextColor: '#ff6461',
|
||||||
mentionHighlightBg: '#984063',
|
mentionHighlightBg: '#984063',
|
||||||
mentionHighlightLink: '#A4FFEB',
|
mentionHighlightLink: '#A4FFEB',
|
||||||
codeTheme: 'solarized-dark',
|
codeTheme: 'solarized-dark',
|
||||||
@@ -524,6 +527,7 @@ export const Constants = {
|
|||||||
linkColor: '#0D93FF',
|
linkColor: '#0D93FF',
|
||||||
buttonBg: '#0177e7',
|
buttonBg: '#0177e7',
|
||||||
buttonColor: '#FFFFFF',
|
buttonColor: '#FFFFFF',
|
||||||
|
errorTextColor: '#ff6461',
|
||||||
mentionHighlightBg: '#784098',
|
mentionHighlightBg: '#784098',
|
||||||
mentionHighlightLink: '#A4FFEB',
|
mentionHighlightLink: '#A4FFEB',
|
||||||
codeTheme: 'monokai',
|
codeTheme: 'monokai',
|
||||||
@@ -606,6 +610,11 @@ export const Constants = {
|
|||||||
id: 'newMessageSeparator',
|
id: 'newMessageSeparator',
|
||||||
uiName: 'New Message Separator'
|
uiName: 'New Message Separator'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
group: 'centerChannelElements',
|
||||||
|
id: 'errorTextColor',
|
||||||
|
uiName: 'Error Text Color'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
group: 'centerChannelElements',
|
group: 'centerChannelElements',
|
||||||
id: 'mentionHighlightBg',
|
id: 'mentionHighlightBg',
|
||||||
|
|||||||
@@ -707,6 +707,10 @@ export function applyTheme(theme) {
|
|||||||
changeCss('.app__body .btn.btn-primary, .app__body .post__pinned-badge', 'color:' + theme.buttonColor);
|
changeCss('.app__body .btn.btn-primary, .app__body .post__pinned-badge', 'color:' + theme.buttonColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (theme.errorTextColor) {
|
||||||
|
changeCss('.app__body .has-error .help-block, .app__body .has-error .control-label, .app__body .has-error .radio, .app__body .has-error .checkbox, .app__body .has-error .radio-inline, .app__body .has-error .checkbox-inline, .app__body .has-error.radio label, .app__body .has-error.checkbox label, .app__body .has-error.radio-inline label, .app__body .has-error.checkbox-inline label', 'color:' + theme.errorTextColor);
|
||||||
|
}
|
||||||
|
|
||||||
if (theme.mentionHighlightBg) {
|
if (theme.mentionHighlightBg) {
|
||||||
changeCss('.app__body .mention--highlight, .app__body .search-highlight', 'background:' + theme.mentionHighlightBg);
|
changeCss('.app__body .mention--highlight, .app__body .search-highlight', 'background:' + theme.mentionHighlightBg);
|
||||||
changeCss('.app__body .post.post--comment .post__body.mention-comment', 'border-color:' + theme.mentionHighlightBg);
|
changeCss('.app__body .post.post--comment .post__body.mention-comment', 'border-color:' + theme.mentionHighlightBg);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user