From 7b99f8902dc79cd81dc086f5a386437bf8e78fbc Mon Sep 17 00:00:00 2001 From: Erwan Leboucher Date: Mon, 17 Aug 2026 15:30:32 +0200 Subject: [PATCH] fix(editor): pad the composer text below as well as above --- src/app/components/editor/Editor.css.ts | 6 +----- src/app/components/editor/Editor.tsx | 14 ++++++-------- src/app/features/settings/general/General.tsx | 11 ----------- src/app/features/settings/settingsLink.ts | 1 - src/app/state/settings.ts | 2 -- 5 files changed, 7 insertions(+), 27 deletions(-) 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)) && ( -