Truncation Logic Refinement

Nucleic-Session: FE1E2C94-7945-4827-AF56-74525A9BD434
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-06 04:22:33 -07:00
co-authored by Nucleic
parent 888a1a406d
commit 9d350d4924
@@ -39,20 +39,22 @@ struct AskUserQuestionCardView: View {
} }
if let question = currentQuestion { if let question = currentQuestion {
VStack(alignment: .leading, spacing: 8) { BoundedCardScroll(maxHeight: middleMaxHeight) {
if questions.count > 1 { VStack(alignment: .leading, spacing: 8) {
Text("Question \(step + 1) of \(questions.count)") if questions.count > 1 {
.font(.caption).foregroundStyle(.secondary) 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)
} }
} }