mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-58183 Post Error Style Fixes (#27015)
* fix alignment of error messages and consistent font size with typing message * fix lint issues * Remove unused CSS class from div --------- Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
This commit is contained in:
@@ -169,8 +169,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0 24px;
|
||||
font-size: 13px;
|
||||
gap: 8px;
|
||||
font-size: 12px;
|
||||
|
||||
.help__text {
|
||||
text-align: right;
|
||||
@@ -181,20 +180,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
&--has-error {
|
||||
padding: 6px 0 0;
|
||||
color: var(--error-text);
|
||||
}
|
||||
|
||||
.has-error,
|
||||
.post-error {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
display: inline-block;
|
||||
margin-bottom: 0;
|
||||
font-size: 0.85em;
|
||||
font-weight: normal;
|
||||
margin: 4px 0 0 0;
|
||||
color: var(--error-text);
|
||||
|
||||
label {
|
||||
margin: 0;
|
||||
color: var(--error-text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
@@ -235,8 +232,8 @@
|
||||
overflow: hidden;
|
||||
height: 20px;
|
||||
margin-bottom: 5px;
|
||||
font-size: 11px;
|
||||
opacity: 0.7;
|
||||
color: rgba(var(--center-channel-color-rgb), 0.75);
|
||||
font-size: 12px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@@ -754,7 +754,7 @@ const AdvanceTextEditor = ({
|
||||
<div
|
||||
id='postCreateFooter'
|
||||
role='form'
|
||||
className={classNames('AdvancedTextEditor__footer', {'AdvancedTextEditor__footer--has-error': postError || serverError})}
|
||||
className='AdvancedTextEditor__footer'
|
||||
>
|
||||
{postError && (
|
||||
<label className={classNames('post-error', {errorClass})}>
|
||||
|
||||
@@ -189,10 +189,10 @@
|
||||
max-width: 100%;
|
||||
height: 20px;
|
||||
margin: 2px 0;
|
||||
color: rgba(var(--center-channel-color-rgb), 0.75);
|
||||
float: left;
|
||||
font-size: 11px;
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.post-right-comments-upload-in-progress {
|
||||
|
||||
@@ -424,10 +424,9 @@
|
||||
overflow: hidden;
|
||||
height: 20px;
|
||||
margin: 2px 0;
|
||||
color: var(--center-channel-color);
|
||||
font-size: 11px;
|
||||
color: rgba(var(--center-channel-color-rgb), 0.75);
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
opacity: 0.7;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user