From 5d1b61e0941dcb1abec9c48e4109ae5683a6c139 Mon Sep 17 00:00:00 2001 From: lunar-seal Date: Sun, 26 Jul 2026 15:24:52 -0500 Subject: [PATCH 1/2] feat: add always inline editor option for multiline messages # Conflicts: # src/app/features/settings/general/General.tsx --- .changeset/option-always-inline-editor.md | 5 +++++ src/app/components/editor/Editor.css.ts | 6 +++++- src/app/components/editor/Editor.tsx | 5 +++-- src/app/features/settings/general/General.tsx | 11 +++++++++++ src/app/state/settings.ts | 2 ++ 5 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 .changeset/option-always-inline-editor.md diff --git a/.changeset/option-always-inline-editor.md b/.changeset/option-always-inline-editor.md new file mode 100644 index 000000000..cf0304d86 --- /dev/null +++ b/.changeset/option-always-inline-editor.md @@ -0,0 +1,5 @@ +--- +default: patch +--- + +Add option to always keep the last line of the text editor "inline" with the UI buttons. diff --git a/src/app/components/editor/Editor.css.ts b/src/app/components/editor/Editor.css.ts index accc3f3d9..aca4cb590 100644 --- a/src/app/components/editor/Editor.css.ts +++ b/src/app/components/editor/Editor.css.ts @@ -15,7 +15,7 @@ export const Editor = style([ export const EditorRow = style({ gridTemplateColumns: 'auto 1fr auto', - alignItems: 'center', + alignItems: 'end', }); export const EditorRowMultiline = style({ @@ -80,6 +80,10 @@ 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 11b05b443..1d21b6726 100644 --- a/src/app/components/editor/Editor.tsx +++ b/src/app/components/editor/Editor.tsx @@ -146,7 +146,8 @@ export const CustomEditor = forwardRef( const hasBefore = Boolean(before); const hasAfter = Boolean(after); const hasResponsiveAfter = Boolean(responsiveAfter); - const layoutIsMultiline = isMultiline || forceMultilineLayout; + const [alwaysInlineEditor] = useSetting(settingsAtom, 'alwaysInlineEditor'); + const layoutIsMultiline = !alwaysInlineEditor && (isMultiline || forceMultilineLayout); const showResponsiveAfterInFooter = hasResponsiveAfter && layoutIsMultiline; const showResponsiveAfterInline = hasResponsiveAfter && !showResponsiveAfterInFooter; @@ -475,7 +476,7 @@ export const CustomEditor = forwardRef( + Date: Sun, 26 Jul 2026 15:35:51 -0500 Subject: [PATCH 2/2] fix unrelated test --- src/app/components/media/Image.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/components/media/Image.tsx b/src/app/components/media/Image.tsx index 55ec8be10..e4a2ea68c 100644 --- a/src/app/components/media/Image.tsx +++ b/src/app/components/media/Image.tsx @@ -367,6 +367,11 @@ function LottieImage({