From ab95548b2ca7b6224d8755556b1970d61ce4fda1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 7 Feb 2026 21:29:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9B=BE=E7=89=87=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E6=B8=85=E6=99=B0=E5=BA=A6=E5=B9=B6=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E5=88=87=E6=8D=A2=E5=90=8E=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=8F=91=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/image-preview.tsx | 10 +++++++++- components/multimodal-input.tsx | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/components/image-preview.tsx b/components/image-preview.tsx index da33459..1eeaacb 100644 --- a/components/image-preview.tsx +++ b/components/image-preview.tsx @@ -171,6 +171,11 @@ export function ImagePreview({ }; const { thumbnail, original, maxWidth, is4K } = parseImageUrls(); + const preferOriginalForPreview = maxWidth >= 380 && original && original !== thumbnail; + const previewSrc = preferOriginalForPreview ? original : thumbnail; + const previewSrcSet = original + ? `${thumbnail} 1x, ${original} 2x` + : undefined; // 下载图片函数(下载原图) const handleDownload = async () => { @@ -243,7 +248,8 @@ export function ImagePreview({ {/* 缩略图(显示压缩后的缩略图)*/}
Generated Image setIsOpen(true)} /> diff --git a/components/multimodal-input.tsx b/components/multimodal-input.tsx index 17ea135..36f5ad9 100644 --- a/components/multimodal-input.tsx +++ b/components/multimodal-input.tsx @@ -759,7 +759,7 @@ function PureMultimodalInput({ className="rounded-xl border border-border bg-background p-3 shadow-xs transition-all duration-200 focus-within:border-border hover:border-muted-foreground/50" onSubmit={(event) => { event.preventDefault(); - if (status !== "ready") { + if (status === "submitted" || status === "streaming") { toast.error("请等待模型返回当前回复后再继续"); } else { submitForm();