Fix compose bugs

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-06-15 23:24:20 +02:00
parent e7188e90e4
commit f15e06b8f3
2 changed files with 3 additions and 2 deletions

View File

@ -302,8 +302,9 @@ const ComposeForm = <ID extends string>({ id, shouldCondense, autoFocus, clickab
<QuotedStatusContainer composeId={id} />
<div
className={clsx('ml-[-56px] flex flex-wrap items-center justify-between sm:ml-0', {
className={clsx('flex flex-wrap items-center justify-between', {
'hidden': condensed,
'ml-[-56px] sm:ml-0': withAvatar,
})}
>
{renderButtons()}

View File

@ -79,7 +79,7 @@ const StatePlugin: React.FC<IStatePlugin> = ({ composeId, isWysiwyg }) => {
}, 750), []);
useEffect(() => {
editor.registerUpdateListener(({ editorState }) => {
return editor.registerUpdateListener(({ editorState }) => {
const plainText = editorState.read(() => $getRoot().getTextContent());
let text = plainText;
if (isWysiwyg) {