Skip to content

Commit

Permalink
Advanced text editor misc fixes (mattermost#29676)
Browse files Browse the repository at this point in the history
* removed extra space

* Fixed border of edit box in mobile view

* Fixed test
  • Loading branch information
harshilsharma63 authored Dec 24, 2024
1 parent f95809e commit 2a6beb1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,27 +202,29 @@
}

@media screen and (max-width: 768px) {
.AdvancedTextEditor {
padding: 0;

&__body {
border-radius: 0;
border-right: none;
border-left: none;
#post-create {
.AdvancedTextEditor {
padding: 0;

&:focus-visible,
&:focus-within,
&:focus-visible:hover,
&:focus-within:hover,
&:hover {
&__body {
border-radius: 0;
border-right: none;
border-left: none;

&:focus-visible,
&:focus-within,
&:focus-visible:hover,
&:focus-within:hover,
&:hover {
border-right: none;
border-left: none;
}
}
}

.ThreadViewer & {
.msg-typing:empty {
display: none;
.ThreadViewer & {
.msg-typing:empty {
display: none;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 2a6beb1

Please sign in to comment.