From a46103c00dd45c740f9867431b5eae556b930e95 Mon Sep 17 00:00:00 2001 From: mlogclub Date: Sat, 11 Apr 2026 14:29:16 +0800 Subject: [PATCH] feat: enhance message editor layout for improved responsiveness --- web/components/im-message-editor.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/components/im-message-editor.tsx b/web/components/im-message-editor.tsx index 0d3a0f1..852e52e 100644 --- a/web/components/im-message-editor.tsx +++ b/web/components/im-message-editor.tsx @@ -107,7 +107,7 @@ export function ImMessageEditor({ editorProps: { attributes: { class: - "h-full min-h-12 overflow-y-auto px-1.5 py-1 text-sm leading-6 text-foreground outline-none [&_.ProseMirror-focused]:outline-none [&_p]:m-0 [&_p+img]:mt-2 [&_img]:my-2 [&_img]:max-h-64 [&_img]:rounded-md [&_img]:object-contain [&_p.is-editor-empty:first-child]:before:text-muted-foreground", + "h-full min-h-12 max-h-[20vh] overflow-y-auto px-1.5 py-1 text-sm leading-6 text-foreground outline-none sm:max-h-none [&_.ProseMirror-focused]:outline-none [&_p]:m-0 [&_p+img]:mt-2 [&_img]:my-2 [&_img]:max-h-64 [&_img]:rounded-md [&_img]:object-contain [&_p.is-editor-empty:first-child]:before:text-muted-foreground", }, handleKeyDown: (_view, event) => { if (event.key === "Enter" && !event.shiftKey) { @@ -257,8 +257,8 @@ export function ImMessageEditor({ className="hidden" onChange={handleSelectAttachment} /> -
-
+
+