diff --git a/app/src/components/decisions/decision-card.tsx b/app/src/components/decisions/decision-card.tsx index 51fb4d1855..0c6b90db9d 100644 --- a/app/src/components/decisions/decision-card.tsx +++ b/app/src/components/decisions/decision-card.tsx @@ -43,6 +43,11 @@ const COLLAPSE_SECONDS = 0.22; * and is named for it, so it always says what pressing it will do. Where the Bot can take words * instead of a choice, the last row is a field for them. * + * ONE SURFACE. The card is the only box: no line between the rows, none above the button, no fill + * behind the picked row. A radio's filled dot is what says which one is picked, as in any radio + * group, and the rows are set apart by their own space. Lines and a tint on every row made a card + * of two answers read as a table of three. + * * THE KEYBOARD. 1 to 9 pick a row and Enter sends it, as in T3 Code, but only on the newest card * that is waiting (`useNewestDecision`), so two cards never both take a key, and never while the * person is typing somewhere (TanStack's single-key hotkeys skip inputs and contenteditable, so @@ -179,17 +184,14 @@ export function DecisionCard({ style={{ overflow: "hidden" }} transition={fold} > - {children ?
{children}
: null} + {children ?
{children}
: null} {/* * Native radios, one group per card, styled as rows: the browser gives them the radio * group's keys (Tab to the picked row, Up and Down to move) and screen readers name * them as choices. */} {/* A fieldset is as wide as its longest word unless told otherwise, which clipped a long link. */} -
+
{/* * ONLY A CLICK OR A KEY PICKS, AND ONLY THE PICKED ROW LOOKS PICKED. A row under the * pointer used to take a tint all but the picked row's, so moving the pointer across @@ -198,10 +200,7 @@ export function DecisionCard({ */} {options.map((option, index) => (