From fbbd0a476335e7725d1e6514dc307315251e4d1d Mon Sep 17 00:00:00 2001 From: Abdussamet Kocak Date: Thu, 9 Apr 2026 22:48:23 +0200 Subject: [PATCH] feat(chat): Add image paste support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Paste images into the textarea to attach them to a message. Pending images show as thumbnails above the input with a × remove button. Images are sent to all three providers (OpenAI image_url, Anthropic image_url via compat endpoint, Gemini inline_data). --- chat/index.html | 78 +++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 63 insertions(+), 15 deletions(-) diff --git a/chat/index.html b/chat/index.html index fe67e2f..264bd63 100644 --- a/chat/index.html +++ b/chat/index.html @@ -129,8 +129,14 @@ .copy-btn:hover { opacity: 1; } - .prompt { + .prompt-wrapper { grid-area: prompt; + display: flex; + flex-direction: column; + gap: 0.5rem; + min-width: 0; + } + .prompt { min-height: 40px; padding: 0.8rem; border: 1px solid var(--border-color); @@ -272,7 +278,12 @@