VoiceWake: stabilize test card height

This commit is contained in:
Peter Steinberger
2025-12-07 02:33:32 +01:00
parent 752bc5a454
commit 2e67c5a045

View File

@@ -427,6 +427,7 @@ struct VoiceWakeSettings: View {
VStack(alignment: .leading, spacing: 4) { VStack(alignment: .leading, spacing: 4) {
Text(self.statusText) Text(self.statusText)
.font(.subheadline) .font(.subheadline)
.frame(maxHeight: 22, alignment: .center)
if case let .detected(text) = testState { if case let .detected(text) = testState {
Text("Heard: \(text)") Text("Heard: \(text)")
.font(.footnote) .font(.footnote)
@@ -439,6 +440,7 @@ struct VoiceWakeSettings: View {
.padding(10) .padding(10)
.background(.quaternary.opacity(0.2)) .background(.quaternary.opacity(0.2))
.clipShape(RoundedRectangle(cornerRadius: 8)) .clipShape(RoundedRectangle(cornerRadius: 8))
.frame(minHeight: 54)
} }
.padding(.vertical, 2) .padding(.vertical, 2)
} }