From a7274cbc160642f5a66ce3222a5320f0b5975c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A0=EB=B3=91=EC=B2=A0?= Date: Mon, 23 Mar 2026 13:41:51 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[=EC=A0=88=EA=B3=A1]=20=ED=8F=BC=20?= =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=98=81=EC=97=AD=20Tooltip=20?= =?UTF-8?q?=EC=A0=84=ED=99=98=20+=20=ED=99=95=EB=8C=80=20=EB=AA=A8?= =?UTF-8?q?=EB=8B=AC=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- .../production/bending/BendingBaseForm.tsx | 41 ++++++++----------- .../production/bending/BendingModelForm.tsx | 41 ++++++++----------- 2 files changed, 36 insertions(+), 46 deletions(-) diff --git a/src/components/production/bending/BendingBaseForm.tsx b/src/components/production/bending/BendingBaseForm.tsx index cedea42e..bed927bd 100644 --- a/src/components/production/bending/BendingBaseForm.tsx +++ b/src/components/production/bending/BendingBaseForm.tsx @@ -11,6 +11,7 @@ import { useState, useEffect, useCallback, useRef } from 'react'; import { useRouter } from 'next/navigation'; import { X, Save, Trash2, Loader2, Pencil, History } from 'lucide-react'; import { DrawingCanvas } from '@/components/items/DrawingCanvas'; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; @@ -103,7 +104,6 @@ export function BendingBaseForm({ id, mode }: BendingBaseFormProps) { const [isDrawingOpen, setIsDrawingOpen] = useState(false); const [drawingImage, setDrawingImage] = useState(null); const [isHistoryOpen, setIsHistoryOpen] = useState(false); - const [isImageZoomOpen, setIsImageZoomOpen] = useState(false); const [originalItem, setOriginalItem] = useState(null); const fileInputRef = useRef(null); @@ -481,17 +481,24 @@ export function BendingBaseForm({ id, mode }: BendingBaseFormProps) {

형상 이미지

-
drawingImage && setIsImageZoomOpen(true)} - title={drawingImage ? '클릭하여 확대' : undefined} - > - {drawingImage ? ( - 형상 이미지 - ) : ( + {drawingImage ? ( + + + +
+ 형상 이미지 +
+
+ + 형상 이미지 확대 + +
+
+ ) : ( +
이미지 없음 - )} -
+
+ )} {!disabled && (
@@ -625,18 +632,6 @@ export function BendingBaseForm({ id, mode }: BendingBaseFormProps) { description="절곡 부품의 형상을 그리거나 편집합니다." /> - {/* 이미지 확대 */} - - - - 형상 이미지 - - {drawingImage && ( - 형상 이미지 확대 - )} - - - {/* 삭제 확인 */} (null); const [isDrawingOpen, setIsDrawingOpen] = useState(false); - const [isImageZoomOpen, setIsImageZoomOpen] = useState(false); const [drawingImage, setDrawingImage] = useState(null); const fileInputRef = useRef(null); @@ -495,17 +495,24 @@ export function BendingModelForm({ id, mode, category }: BendingModelFormProps)

결합형태 이미지

-
drawingImage && setIsImageZoomOpen(true)} - title={drawingImage ? '클릭하여 확대' : undefined} - > - {drawingImage ? ( - 결합형태 이미지 - ) : ( + {drawingImage ? ( + + + +
+ 결합형태 이미지 +
+
+ + 결합형태 이미지 확대 + +
+
+ ) : ( +
이미지 없음 - )} -
+
+ )} {!disabled && (
@@ -748,18 +755,6 @@ export function BendingModelForm({ id, mode, category }: BendingModelFormProps) description="조립도 형상을 그리거나 편집합니다." /> - {/* 이미지 확대 */} - - - - 결합형태 이미지 - - {drawingImage && ( - 결합형태 이미지 확대 - )} - - - {/* 삭제 확인 */}