Skip to content

Commit 68092f2

Browse files
committed
tui: improve other answer option layout with better indentation and clearer label
1 parent 83f3c72 commit 68092f2

File tree

1 file changed

+15
-11
lines changed
  • packages/opencode/src/cli/cmd/tui/routes/session

1 file changed

+15
-11
lines changed

packages/opencode/src/cli/cmd/tui/routes/session/question.tsx

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -213,24 +213,28 @@ export function QuestionPrompt(props: { request: QuestionRequest }) {
213213
<box flexDirection="row" gap={1}>
214214
<box backgroundColor={other() ? theme.backgroundElement : undefined}>
215215
<text fg={other() ? theme.secondary : input() ? theme.success : theme.text}>
216-
{options().length + 1}. Other
216+
{options().length + 1}. Type your own answer
217217
</text>
218218
</box>
219219
<text fg={theme.success}>{input() ? "✓" : ""}</text>
220220
</box>
221221
<Show when={store.editing}>
222-
<textarea
223-
ref={(val: TextareaRenderable) => (textarea = val)}
224-
focused
225-
placeholder="Type your own answer"
226-
textColor={theme.text}
227-
focusedTextColor={theme.text}
228-
cursorColor={theme.primary}
229-
keyBindings={bindings()}
230-
/>
222+
<box paddingLeft={3}>
223+
<textarea
224+
ref={(val: TextareaRenderable) => (textarea = val)}
225+
focused
226+
placeholder="Type your own answer"
227+
textColor={theme.text}
228+
focusedTextColor={theme.text}
229+
cursorColor={theme.primary}
230+
keyBindings={bindings()}
231+
/>
232+
</box>
231233
</Show>
232234
<Show when={!store.editing && input()}>
233-
<text fg={theme.textMuted}>{input()}</text>
235+
<box paddingLeft={3}>
236+
<text fg={theme.textMuted}>{input()}</text>
237+
</box>
234238
</Show>
235239
</box>
236240
</box>

0 commit comments

Comments
 (0)