Fix Clear All Recents button stretching full width on macOS

This commit is contained in:
Arkadiusz Fal
2026-07-11 20:25:10 +02:00
parent 8b50c2ee14
commit cc50c88d75

View File

@@ -887,14 +887,13 @@ struct SearchView: View {
showingClearAllRecentsConfirmation = true showingClearAllRecentsConfirmation = true
} label: { } label: {
HStack(spacing: 6) { HStack(spacing: 6) {
Spacer()
Image(systemName: "trash") Image(systemName: "trash")
Text(String(localized: "search.clearAllRecents")) Text(String(localized: "search.clearAllRecents"))
.fontWeight(.semibold) .fontWeight(.semibold)
Spacer()
} }
} }
.foregroundStyle(.secondary) .foregroundStyle(.secondary)
.frame(maxWidth: .infinity)
.padding(.top, 16) .padding(.top, 16)
.padding(.bottom, 32) .padding(.bottom, 32)
} }