Advanced text editor misc fixes (#29676)

* removed extra space

* Fixed border of edit box in mobile view

* Fixed test
This commit is contained in:
Harshil Sharma 2024-12-24 10:37:41 +05:30 committed by GitHub
parent f95809ef5d
commit 2a6beb1237
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 19 deletions

View file

@ -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;
}
}
}
}

View file

@ -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"
>

View file

@ -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>