VoiceWake: stabilize test card height
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user