Advanced text editor misc fixes (#29676)

* removed extra space

* Fixed border of edit box in mobile view

* Fixed test
Этот коммит содержится в:
Harshil Sharma
2024-12-24 10:37:41 +05:30
коммит произвёл GitHub
родитель f95809ef5d
Коммит 2a6beb1237
3 изменённых файлов: 21 добавлений и 19 удалений

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

@@ -202,27 +202,29 @@
}
@media screen and (max-width: 768px) {
.AdvancedTextEditor {
padding: 0;
#post-create {
.AdvancedTextEditor {
padding: 0;
&__body {
border-radius: 0;
border-right: none;
border-left: none;
&:focus-visible,
&:focus-within,
&:focus-visible:hover,
&:focus-within:hover,
&:hover {
&__body {
border-radius: 0;
border-right: none;
border-left: none;
}
}
.ThreadViewer & {
.msg-typing:empty {
display: none;
&:focus-visible,
&:focus-within,
&:focus-visible:hover,
&:focus-within:hover,
&:hover {
border-right: none;
border-left: none;
}
}
.ThreadViewer & {
.msg-typing:empty {
display: none;
}
}
}
}

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

@@ -161,7 +161,7 @@ exports[`components/channel_view Should match snapshot with base props 1`] = `
channelId="channelId"
/>
<div
className="post-create__container"
className="post-create__container AdvancedTextEditor__ctr"
data-testid="post-create"
id="post-create"
>

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

@@ -171,7 +171,7 @@ export default class ChannelView extends React.PureComponent<Props, State> {
<div
id='post-create'
data-testid='post-create'
className='post-create__container'
className='post-create__container AdvancedTextEditor__ctr'
>
<AdvancedCreatePost/>
</div>