diff --git a/NucleicRemote/NucleicRemote/Views/AskUserQuestionCardView.swift b/NucleicRemote/NucleicRemote/Views/AskUserQuestionCardView.swift index 7543435..fdcf16f 100644 --- a/NucleicRemote/NucleicRemote/Views/AskUserQuestionCardView.swift +++ b/NucleicRemote/NucleicRemote/Views/AskUserQuestionCardView.swift @@ -39,20 +39,22 @@ struct AskUserQuestionCardView: View { } if let question = currentQuestion { - VStack(alignment: .leading, spacing: 8) { - if questions.count > 1 { - Text("Question \(step + 1) of \(questions.count)") - .font(.caption).foregroundStyle(.secondary) + BoundedCardScroll(maxHeight: middleMaxHeight) { + VStack(alignment: .leading, spacing: 8) { + if questions.count > 1 { + Text("Question \(step + 1) of \(questions.count)") + .font(.caption).foregroundStyle(.secondary) + } + if let header = question.header, !header.isEmpty { + Text(header.uppercased()) + .font(.caption).bold().foregroundStyle(.secondary) + } + Text(question.question).font(.headline) + ForEach(question.options) { option in + optionRow(question, label: option.label, description: option.description) + } + otherRow(question) } - if let header = question.header, !header.isEmpty { - Text(header.uppercased()) - .font(.caption).bold().foregroundStyle(.secondary) - } - Text(question.question).font(.headline) - ForEach(question.options) { option in - optionRow(question, label: option.label, description: option.description) - } - otherRow(question) } }