From a341a15a5e0eee9a25bb1479ea95b61c2f0234c3 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Mon, 11 Sep 2023 11:54:10 -0500 Subject: [PATCH] [AltWidget] Insets ActiveAppsWidget buttons from edge to improve tapability --- AltWidget/Widgets/ActiveAppsWidget.swift | 27 ++++++++++++------------ 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/AltWidget/Widgets/ActiveAppsWidget.swift b/AltWidget/Widgets/ActiveAppsWidget.swift index 90bebf02..5160c1aa 100644 --- a/AltWidget/Widgets/ActiveAppsWidget.swift +++ b/AltWidget/Widgets/ActiveAppsWidget.swift @@ -106,21 +106,20 @@ private struct ActiveAppsWidgetView: View .foregroundStyle(.secondary) } - HStack { - Spacer() - - Countdown(startDate: app.refreshedDate, - endDate: app.expirationDate, - currentDate: entry.date, - strokeWidth: 3.0) // Slightly thinner circle stroke width - .background { - Color.black.opacity(0.1) - .mask(Capsule()) - .padding(.all, -5) - } - .font(.system(size: 16, weight: .semibold, design: .rounded)) - .invalidatableContent() + Spacer() + + Countdown(startDate: app.refreshedDate, + endDate: app.expirationDate, + currentDate: entry.date, + strokeWidth: 3.0) // Slightly thinner circle stroke width + .background { + Color.black.opacity(0.1) + .mask(Capsule()) + .padding(.all, -5) } + .font(.system(size: 16, weight: .semibold, design: .rounded)) + .invalidatableContent() + .padding(.horizontal, 8) .activatesRefreshAllAppsIntent() } .frame(height: rowHeight)