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
} label: {
HStack(spacing: 6) {
Spacer()
Image(systemName: "trash")
Text(String(localized: "search.clearAllRecents"))
.fontWeight(.semibold)
Spacer()
}
}
.foregroundStyle(.secondary)
.frame(maxWidth: .infinity)
.padding(.top, 16)
.padding(.bottom, 32)
}