From 0be0f41bd9de7522f0a99c584a291c0aa622d64c Mon Sep 17 00:00:00 2001 From: pro Date: Wed, 21 Jan 2026 20:20:10 +0900 Subject: [PATCH] =?UTF-8?q?fix:daily-logs=20toggleAttentionItem=20?= =?UTF-8?q?=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=EC=9C=84=EC=9E=84=20=EB=B0=A9?= =?UTF-8?q?=EC=8B=9D=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/daily-logs/index.blade.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/resources/views/daily-logs/index.blade.php b/resources/views/daily-logs/index.blade.php index 53035581..ff830a65 100644 --- a/resources/views/daily-logs/index.blade.php +++ b/resources/views/daily-logs/index.blade.php @@ -198,7 +198,7 @@ class="day-card w-full text-left p-3 rounded-lg border-2 transition-all hover:sh {{ $issue->title }}
@@ -300,7 +300,7 @@ class="p-0.5 text-green-500 hover:bg-green-50 rounded" title="해결"> {{ $task->title }}
@@ -1209,11 +1209,17 @@ function confirmForceDelete(id, date) { } // ======================================== - // 주의 필요 항목 펼치기/접기 + // 주의 필요 항목 펼치기/접기 (이벤트 위임) // ======================================== - function toggleAttentionItem(textEl) { + document.addEventListener('click', function(e) { + const textEl = e.target.closest('[data-toggle-attention]'); + if (!textEl) return; + const itemDiv = textEl.closest('[data-issue-id], [data-task-id]'); + if (!itemDiv) return; + const fullDiv = itemDiv.querySelector('.attention-item-full'); + if (!fullDiv) return; if (fullDiv.classList.contains('hidden')) { // 펼치기: 상세 정보 표시 + 제목 전체 표시 @@ -1226,7 +1232,7 @@ function toggleAttentionItem(textEl) { textEl.classList.add('truncate'); textEl.classList.remove('text-red-600'); } - } + }); // ======================================== // 미완료 항목 펼치기/접기