fix(diary): make full template row tappable in page chooser sheet

페이지 추가 시트의 '내 양식' 목록에서 한 쪽짜리 양식(사진·1쪽 PDF) 행이
왼쪽(썸네일·이름)만 눌리고 오른쪽 절반은 반응하지 않던 문제 수정.
DiaryTemplateRowLabel이 내용물 폭만 차지해 plain 버튼의 contentShape도
그 좁은 라벨에만 적용됐던 것 — 라벨을 frame(maxWidth: .infinity)로 행
전체 폭으로 넓힌 뒤 contentShape(Rectangle())를 적용해 행 어디를 눌러도
동작하게 했다. 여러 쪽 PDF 행(NavigationLink)은 원래 전체 폭이 눌려
변경 없음.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013yKDMhuF39GVYy3FMcGHh7
This commit is contained in:
songyc macbook 2026-07-15 01:48:09 +09:00
parent 1e50485537
commit 3067877d37

View File

@ -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)