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) { @media screen and (max-width: 768px) {
.AdvancedTextEditor { #post-create {
padding: 0; .AdvancedTextEditor {
padding: 0;
&__body { &__body {
border-radius: 0; border-radius: 0;
border-right: none;
border-left: none;
&:focus-visible,
&:focus-within,
&:focus-visible:hover,
&:focus-within:hover,
&:hover {
border-right: none; border-right: none;
border-left: none; border-left: none;
}
}
.ThreadViewer & { &:focus-visible,
.msg-typing:empty { &:focus-within,
display: none; &: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" channelId="channelId"
/> />
<div <div
className="post-create__container" className="post-create__container AdvancedTextEditor__ctr"
data-testid="post-create" data-testid="post-create"
id="post-create" id="post-create"
> >

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

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