fix(app): simplify question prompt (#33968)
Co-authored-by: Test <test@opencode.test>
This commit is contained in:
co-authored by
Test
parent
5f61d21487
commit
17166b271f
@@ -432,21 +432,23 @@ export const SessionQuestionDock: Component<{ request: QuestionRequest; onSubmit
|
|||||||
header={
|
header={
|
||||||
<>
|
<>
|
||||||
<div data-slot="question-header-title">{summary()}</div>
|
<div data-slot="question-header-title">{summary()}</div>
|
||||||
<div data-slot="question-progress">
|
<Show when={total() > 1}>
|
||||||
<For each={questions()}>
|
<div data-slot="question-progress">
|
||||||
{(_, i) => (
|
<For each={questions()}>
|
||||||
<button
|
{(_, i) => (
|
||||||
type="button"
|
<button
|
||||||
data-slot="question-progress-segment"
|
type="button"
|
||||||
data-active={i() === store.tab}
|
data-slot="question-progress-segment"
|
||||||
data-answered={answered(i())}
|
data-active={i() === store.tab}
|
||||||
disabled={sending()}
|
data-answered={answered(i())}
|
||||||
onClick={() => jump(i())}
|
disabled={sending()}
|
||||||
aria-label={`${language.t("ui.tool.questions")} ${i() + 1}`}
|
onClick={() => jump(i())}
|
||||||
/>
|
aria-label={`${language.t("ui.tool.questions")} ${i() + 1}`}
|
||||||
)}
|
/>
|
||||||
</For>
|
)}
|
||||||
</div>
|
</For>
|
||||||
|
</div>
|
||||||
|
</Show>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
footer={
|
footer={
|
||||||
|
|||||||
@@ -918,6 +918,8 @@
|
|||||||
line-height: var(--line-height-large);
|
line-height: var(--line-height-large);
|
||||||
color: var(--text-strong);
|
color: var(--text-strong);
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
|
-webkit-user-select: text;
|
||||||
|
user-select: text;
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-slot="question-hint"] {
|
[data-slot="question-hint"] {
|
||||||
|
|||||||
Reference in New Issue
Block a user