Truncation Logic Refinement
Nucleic-Session: FE1E2C94-7945-4827-AF56-74525A9BD434 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user