From 888a1a406d089996673987c597d895f73f898264 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Mon, 6 Jul 2026 04:22:23 -0700 Subject: [PATCH] Truncation Logic Refinement Nucleic-Session: FE1E2C94-7945-4827-AF56-74525A9BD434 Co-authored-by: Nucleic --- .../NucleicRemote/Views/AskUserQuestionCardView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NucleicRemote/NucleicRemote/Views/AskUserQuestionCardView.swift b/NucleicRemote/NucleicRemote/Views/AskUserQuestionCardView.swift index 18e55c5..7543435 100644 --- a/NucleicRemote/NucleicRemote/Views/AskUserQuestionCardView.swift +++ b/NucleicRemote/NucleicRemote/Views/AskUserQuestionCardView.swift @@ -14,6 +14,10 @@ struct AskUserQuestionCardView: View { @EnvironmentObject var store: RemoteStore let approval: ApprovalRequest let questions: [AskUserQuestion.Question] + /// The transcript's on-screen height, so a long question (many options / long descriptions) can + /// scroll inside a bounded region instead of growing the card past the screen and pushing the + /// Deny / Back / Next / Submit buttons out of reach. 0 until measured. + var availableHeight: CGFloat = 0 /// Selected option labels per question text. @State private var selected: [String: Set] = [:]