From b8381c616073efd5d948b15a4811a06417ecf02a Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 29 Dec 2025 07:39:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3canvas=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E9=80=BB=E8=BE=91=EF=BC=8C=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=A4=84=E7=90=86=E5=90=8E=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/image-annotator.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/image-annotator.tsx b/components/image-annotator.tsx index 5f82333..384fa8c 100644 --- a/components/image-annotator.tsx +++ b/components/image-annotator.tsx @@ -92,8 +92,8 @@ export function ImageAnnotator({ imageUrl, onConfirm, onCancel }: ImageAnnotator const context = canvas.getContext("2d"); if (!context) return; - // 弹窗内画布区域大小(减去工具栏和边距) - const containerWidth = 800; // 850 - padding + // 弹窗内画布区域大小(减去工具栏和边距,考虑并排显示) + const containerWidth = processedImageBase64 ? 550 : 1100; // 如果有处理后图片,每个区域550px;否则1100px const containerHeight = 350; // 550 - 工具栏高度 const scaleX = containerWidth / image.width; const scaleY = containerHeight / image.height;