From 3067877d373c77484ef29f17c946871d6094df7a Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Wed, 15 Jul 2026 01:48:09 +0900 Subject: [PATCH] fix(diary): make full template row tappable in page chooser sheet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 페이지 추가 시트의 '내 양식' 목록에서 한 쪽짜리 양식(사진·1쪽 PDF) 행이 왼쪽(썸네일·이름)만 눌리고 오른쪽 절반은 반응하지 않던 문제 수정. DiaryTemplateRowLabel이 내용물 폭만 차지해 plain 버튼의 contentShape도 그 좁은 라벨에만 적용됐던 것 — 라벨을 frame(maxWidth: .infinity)로 행 전체 폭으로 넓힌 뒤 contentShape(Rectangle())를 적용해 행 어디를 눌러도 동작하게 했다. 여러 쪽 PDF 행(NavigationLink)은 원래 전체 폭이 눌려 변경 없음. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_013yKDMhuF39GVYy3FMcGHh7 --- myApp/HaruDanim/IOS/Views/DiaryTemplates.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/myApp/HaruDanim/IOS/Views/DiaryTemplates.swift b/myApp/HaruDanim/IOS/Views/DiaryTemplates.swift index 51526bd..17e3388 100644 --- a/myApp/HaruDanim/IOS/Views/DiaryTemplates.swift +++ b/myApp/HaruDanim/IOS/Views/DiaryTemplates.swift @@ -279,6 +279,9 @@ struct DiaryPageChooserSheet: View { pick(.template(template, pageIndex: 0)) } label: { DiaryTemplateRowLabel(template: template) + // 라벨은 내용물 폭만 차지하므로 행 전체로 넓혀야 + // 오른쪽 빈 영역도 탭 판정에 들어간다 + .frame(maxWidth: .infinity, alignment: .leading) .contentShape(Rectangle()) } .buttonStyle(.plain)