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:
parent
1e50485537
commit
3067877d37
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user