ui 수정 및 시현할 기능 업데이트

This commit is contained in:
leeheejin
2025-10-02 14:34:15 +09:00
parent 2c0dca08b4
commit 3fa410cbe4
168 changed files with 1545 additions and 1066 deletions

View File

@@ -59,6 +59,20 @@ export const EditModal: React.FC<EditModalProps> = ({
const dynamicSize = calculateModalSize();
// EditModal 전용 닫기 이벤트 리스너
useEffect(() => {
const handleCloseEditModal = () => {
console.log("🚪 EditModal: closeEditModal 이벤트 수신");
onClose();
};
window.addEventListener("closeEditModal", handleCloseEditModal);
return () => {
window.removeEventListener("closeEditModal", handleCloseEditModal);
};
}, [onClose]);
// DialogContent 크기 강제 적용
useEffect(() => {
if (isOpen && dynamicSize) {
@@ -256,7 +270,7 @@ export const EditModal: React.FC<EditModalProps> = ({
<div className="flex h-full items-center justify-center">
<div className="text-center">
<div className="mx-auto mb-4 h-8 w-8 animate-spin rounded-full border-4 border-gray-300 border-t-blue-500"></div>
<p className="text-gray-600"> ...</p>
<p className="text-muted-foreground"> ...</p>
</div>
</div>
) : screenData && components.length > 0 ? (