From f3a7c9757d5abb1004c20a42ce509bd18f342db0 Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Fri, 24 Oct 2025 01:05:46 +0100 Subject: [PATCH] Improve attachment chip design with file icons and better styling --- src/components/prompt-input.tsx | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/src/components/prompt-input.tsx b/src/components/prompt-input.tsx index 0dfe68d2..dd7c7382 100644 --- a/src/components/prompt-input.tsx +++ b/src/components/prompt-input.tsx @@ -287,19 +287,34 @@ export default function PromptInput(props: PromptInputProps) { /> -
+
0}> -
+
{(attachment) => ( -
- @{attachment.filename} +
+ + + + {attachment.filename}
)} @@ -317,6 +332,7 @@ export default function PromptInput(props: PromptInputProps) { onBlur={() => setIsFocused(false)} disabled={sending() || props.disabled} rows={1} + style={attachments().length > 0 ? { "padding-top": "8px" } : {}} />