diff --git a/components/image-annotator.tsx b/components/image-annotator.tsx index 5f8233389..384fa8c05 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;