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} /> -