From 57afa403a8cd5c10286f93314dfd90969535cb47 Mon Sep 17 00:00:00 2001 From: tomasz-io Date: Tue, 24 Dec 2024 11:07:04 -0800 Subject: [PATCH] improv: contain chat image to a max height --- gui/src/components/mainInput/TipTapEditor.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/src/components/mainInput/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor.tsx index 24f874eb64..8f7191e184 100644 --- a/gui/src/components/mainInput/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor.tsx @@ -340,6 +340,10 @@ function TipTapEditor(props: TipTapEditorProps) { }); return [plugin]; }, + }).configure({ + HTMLAttributes: { + class: "editor-image bg-black object-contain max-h-[250px] w-full", + }, }), Placeholder.configure({ placeholder: getPlaceholderText(