From 22dde0c25f018504fa75d36343b669a24cd82e8d Mon Sep 17 00:00:00 2001 From: Greg Date: Tue, 26 May 2026 11:14:08 -0700 Subject: [PATCH] Make full history row tappable The day-header button only registered taps over its rendered content (date text, duration, chevron). The Spacer in the middle of the HStack had no hit area, so the visually large empty region between the left and right text columns swallowed taps. Adding contentShape(Rectangle()) extends the hit region to the full row. Co-authored-by: Cursor --- Bedtime/Bedtime/Views/Components/SleepDayGroup.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Bedtime/Bedtime/Views/Components/SleepDayGroup.swift b/Bedtime/Bedtime/Views/Components/SleepDayGroup.swift index df2fa5f..ce2a9cf 100644 --- a/Bedtime/Bedtime/Views/Components/SleepDayGroup.swift +++ b/Bedtime/Bedtime/Views/Components/SleepDayGroup.swift @@ -72,6 +72,7 @@ struct SleepDayGroup: View { .foregroundColor(.secondary) } .padding(.vertical, 8) + .contentShape(Rectangle()) } .buttonStyle(PlainButtonStyle())