An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
style: adjust attachment preview image size
Yoshiki Miurae60a6e510690
diff --git a/components/attachment-preview.tsx b/components/attachment-preview.tsxindex b639c8d3..9061a39a 100644--- a/components/attachment-preview.tsx+++ b/components/attachment-preview.tsx@@ -18,7 +18,7 @@ export const AttachmentPreview: React.FC<AttachmentPreviewProps> = ({if (!attachments?.length) return nullreturn (- <div className="mt-3 flex flex-wrap gap-4">+ <div className="flex flex-wrap gap-4">{attachments.map((att, index) => {const isImage = att.contentType.startsWith('image/')const isPdf = att.contentType === 'application/pdf'@@ -30,7 +30,7 @@ export const AttachmentPreview: React.FC<AttachmentPreviewProps> = ({<imgsrc={att.url}alt={att.name}- className="rounded border max-h-28 object-contain"+ className="rounded-md border max-h-16 object-contain"/>) : isPdf ? (<a