fix(tui): simplify form field labels

This commit is contained in:
Dax Raad 2026-07-28 11:56:11 -04:00
commit b671a77145

View file

@ -746,11 +746,7 @@ export function FormPrompt(props: { form: FormWithLocation }) {
<Show when={!confirm() && answerField()}> <Show when={!confirm() && answerField()}>
<box paddingLeft={1} gap={1}> <box paddingLeft={1} gap={1}>
<box> <box>
<text fg={themeV2.text.default}> <text fg={themeV2.text.default}>{answerField()!.description ?? formLabel(answerField()!)}</text>
{answerField()!.description ?? formLabel(answerField()!)}
{answerField()!.required ? " (required)" : ""}
{multi() ? " (select all that apply)" : ""}
</text>
</box> </box>
<Show when={textual() ? answerField()!.key : undefined} keyed> <Show when={textual() ? answerField()!.key : undefined} keyed>
<box paddingLeft={1}> <box paddingLeft={1}>