diff --git a/components/image-annotator.tsx b/components/image-annotator.tsx index d4dc37e5b..1662c9159 100644 --- a/components/image-annotator.tsx +++ b/components/image-annotator.tsx @@ -1031,88 +1031,93 @@ export function ImageAnnotator({ imageUrl, onConfirm, onCancel }: ImageAnnotator {isResizeMode ? ( /* 尺寸调整模式下显示尺寸调整工具栏 */
- {/* 比例选择 */} -
- -
- {aspectRatios.map((ratio) => ( -
- {ratio.label} - - ))} +
1 ? "24px" : ratio.ratio && ratio.ratio < 1 ? "12px" : "16px", + height: ratio.value === "smart" ? "16px" : ratio.ratio && ratio.ratio > 1 ? "12px" : ratio.ratio && ratio.ratio < 1 ? "24px" : "16px", + }} + > + {ratio.value === "smart" && ( + + )} +
+ {ratio.label} + + ))} +
- - - {/* 尺寸输入 */} -
-
- - handleWidthChange(Number.parseInt(e.target.value) || 1)} - className="w-24 h-8" - min={1} - max={10000} - /> - px -
-
- - handleHeightChange(Number.parseInt(e.target.value) || 1)} - className="w-24 h-8" - min={1} - max={10000} - /> - px -
-
- - setResizeBackgroundColor(e.target.value)} - disabled={resizeBackgroundTransparent} - className="w-12 h-8 rounded border cursor-pointer disabled:opacity-50" - /> -
-
-