diff --git a/src/app/components/editor/Editor.css.ts b/src/app/components/editor/Editor.css.ts index 97053431e..79bf483fd 100644 --- a/src/app/components/editor/Editor.css.ts +++ b/src/app/components/editor/Editor.css.ts @@ -65,7 +65,7 @@ export const EditorTextarea = style([ { flexGrow: 1, height: 'auto', - padding: `${toRem(13)} 0 0`, + padding: `${toRem(13)} 0`, position: 'relative', whiteSpace: 'pre-wrap', wordWrap: 'break-word', @@ -104,10 +104,6 @@ export const EditorTextarea = style([ }, ]); -export const EditorTextareaInline = style({ - paddingBottom: toRem(13), -}); - export const EditorResponsiveAfterMultiline = style([ EditorOptions, { diff --git a/src/app/components/editor/Editor.tsx b/src/app/components/editor/Editor.tsx index c007212d7..e82569649 100644 --- a/src/app/components/editor/Editor.tsx +++ b/src/app/components/editor/Editor.tsx @@ -79,14 +79,12 @@ export const CustomEditor = forwardRef( ref ) => { const [shortcutOverrides] = useSetting(settingsAtom, 'shortcutOverrides'); - const [alwaysInlineEditor] = useSetting(settingsAtom, 'alwaysInlineEditor'); const rootRef = useRef(null); const focusScrollTimerRef = useRef(); // Buttons stay inline however tall the composer grows; only the audio // recorder stacks, because its controls need a row of their own. - const layoutIsMultiline = !alwaysInlineEditor && forceMultilineLayout; - const showResponsiveAfterInFooter = Boolean(responsiveAfter) && layoutIsMultiline; + const showResponsiveAfterInFooter = Boolean(responsiveAfter) && forceMultilineLayout; useEffect(() => () => window.clearTimeout(focusScrollTimerRef.current), []); const handleKeyDown: KeyboardEventHandler = useCallback( @@ -135,13 +133,13 @@ export const CustomEditor = forwardRef(
{top} {before && ( ( )} ( ( {(after || (responsiveAfter && !showResponsiveAfterInFooter)) && ( -