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>
Этот коммит содержится в:
Matthew Birtch
2024-05-28 18:03:39 -04:00
коммит произвёл GitHub
родитель 51e9092da6
Коммит 96825e23d8
4 изменённых файлов: 17 добавлений и 21 удалений

Просмотреть файл

@@ -169,8 +169,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 0 24px; padding: 0 24px;
font-size: 13px; font-size: 12px;
gap: 8px;
.help__text { .help__text {
text-align: right; text-align: right;
@@ -181,20 +180,18 @@
} }
} }
&--has-error { .has-error,
padding: 6px 0 0;
color: var(--error-text);
}
.post-error { .post-error {
position: absolute; margin: 4px 0 0 0;
top: 4px; color: var(--error-text);
display: inline-block;
margin-bottom: 0; label {
font-size: 0.85em; margin: 0;
font-weight: normal; color: var(--error-text);
}
} }
} }
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
@@ -235,8 +232,8 @@
overflow: hidden; overflow: hidden;
height: 20px; height: 20px;
margin-bottom: 5px; margin-bottom: 5px;
font-size: 11px; color: rgba(var(--center-channel-color-rgb), 0.75);
opacity: 0.7; font-size: 12px;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }

Просмотреть файл

@@ -754,7 +754,7 @@ const AdvanceTextEditor = ({
<div <div
id='postCreateFooter' id='postCreateFooter'
role='form' role='form'
className={classNames('AdvancedTextEditor__footer', {'AdvancedTextEditor__footer--has-error': postError || serverError})} className='AdvancedTextEditor__footer'
> >
{postError && ( {postError && (
<label className={classNames('post-error', {errorClass})}> <label className={classNames('post-error', {errorClass})}>

Просмотреть файл

@@ -189,10 +189,10 @@
max-width: 100%; max-width: 100%;
height: 20px; height: 20px;
margin: 2px 0; margin: 2px 0;
color: rgba(var(--center-channel-color-rgb), 0.75);
float: left; float: left;
font-size: 11px; font-size: 12px;
line-height: 16px; line-height: 16px;
opacity: 0.7;
} }
.post-right-comments-upload-in-progress { .post-right-comments-upload-in-progress {

Просмотреть файл

@@ -424,10 +424,9 @@
overflow: hidden; overflow: hidden;
height: 20px; height: 20px;
margin: 2px 0; margin: 2px 0;
color: var(--center-channel-color); color: rgba(var(--center-channel-color-rgb), 0.75);
font-size: 11px; font-size: 12px;
line-height: 16px; line-height: 16px;
opacity: 0.7;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }