Skip to content

Commit 89db0e2

Browse files
committed
add background to response form
1 parent 4b5a35a commit 89db0e2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

app/components/game/answer-input.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export function AnswerInput({
7979
</label>
8080
<Textarea
8181
ref={textareaRef}
82+
className="bg-background"
8283
value={text}
8384
onChange={(e) => setText(e.target.value)}
8485
onKeyDown={(e) => {

app/components/game/game-session.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function GameSession() {
101101
<MiniAppPlayer miniApp={currentMiniApp} />
102102
</div>
103103

104-
<div className="sticky top-6 w-80 shrink-0 rounded-lg border bg-card p-4">
104+
<div className="sticky top-6 w-80 shrink-0 rounded-lg border border-sky-600 bg-sky-50 p-4 dark:border-zinc-600">
105105
{isReviewing && lastResult ? (
106106
<AnswerFeedback
107107
attempts={lastResult.attempts}
@@ -116,6 +116,7 @@ export function GameSession() {
116116
/>
117117
) : (
118118
<AnswerInput
119+
key={state.currentIndex}
119120
onSubmit={handleSubmit}
120121
onSkip={skipQuestion}
121122
attemptsUsed={state.currentAttempts.length}

0 commit comments

Comments
 (0)