diff --git a/frontend/src/components/message/PromptInput.tsx b/frontend/src/components/message/PromptInput.tsx index e2d44cc2..680fe783 100644 --- a/frontend/src/components/message/PromptInput.tsx +++ b/frontend/src/components/message/PromptInput.tsx @@ -762,7 +762,7 @@ return ( )} - + {isConfirmStep ? 'Review' : ( totalSteps > 1 ? `Question ${currentIndex + 1}/${questions.length}` @@ -203,22 +203,22 @@ export function QuestionPrompt({ question, onReply, onReject }: QuestionPromptPr )} -
+
{isConfirmStep ? ( {totalSteps > 1 && ( -
+
{Array.from({ length: totalSteps }).map((_, i) => ( @@ -280,10 +279,10 @@ export function QuestionPrompt({ question, onReply, onReject }: QuestionPromptPr size="sm" onClick={handleSubmit} disabled={isSubmitting || !allQuestionsAnswered} - className="flex-1 h-10 bg-blue-600 hover:bg-blue-700 text-white" + className="flex-1 h-8 sm:h-10 text-xs sm:text-sm bg-emerald-600 hover:bg-emerald-700 text-white" > {isSubmitting ? ( - + ) : ( 'Submit' )} @@ -293,10 +292,11 @@ export function QuestionPrompt({ question, onReply, onReject }: QuestionPromptPr size="sm" onClick={handleNext} disabled={currentIndex === totalSteps - 1 || (expandedOther === currentIndex && !customInputs[currentIndex]?.trim())} - className="flex-1 h-10 bg-blue-600 hover:bg-blue-700 text-white" + className="flex-1 h-8 sm:h-10 text-xs sm:text-sm bg-emerald-600 hover:bg-emerald-700 text-white" > - {expandedOther === currentIndex ? 'Confirm' : (currentIndex === questions.length - 1 ? 'Review' : 'Next')} - + {expandedOther === currentIndex ? 'Confirm' : (currentIndex === questions.length - 1 ? 'Review' : 'Next')} + {expandedOther === currentIndex ? 'OK' : (currentIndex === questions.length - 1 ? 'Review' : '→')} + ) )} @@ -346,15 +346,15 @@ function QuestionStep({ const isCustomSelected = confirmedCustom && answers.includes(confirmedCustom) return ( -
-

+

+

{question.question} {isMultiSelect && ( (select all that apply) )}

-
+
{question.options.map((option, i) => { const isSelected = answers.includes(option.label) return ( @@ -362,24 +362,24 @@ function QuestionStep({ key={i} onClick={() => onSelectOption(option.label)} className={cn( - "w-full text-left p-3 rounded-lg border-2 transition-all duration-200 active:scale-[0.98]", + "w-full text-left p-2 sm:p-3 rounded-lg border-2 transition-all duration-200 active:scale-[0.98]", isSelected ? "border-blue-500 bg-blue-500/10" : "border-border hover:border-blue-500/50 hover:bg-blue-500/5" )} > -
-
+
+
- {isSelected && } + {isSelected && }
{option.label} @@ -387,7 +387,7 @@ function QuestionStep({
{option.description && ( -

+

{option.description}

)} @@ -404,23 +404,23 @@ function QuestionStep({ } }} className={cn( - "w-full text-left p-3 rounded-lg border-2 transition-all duration-200", + "w-full text-left p-2 sm:p-3 rounded-lg border-2 transition-all duration-200", expandedOther || isCustomSelected ? "border-blue-500 bg-blue-500/10" : "border-border hover:border-blue-500/50 hover:bg-blue-500/5" )} > -
+
- {isCustomSelected && } + {isCustomSelected && }
Other... @@ -429,13 +429,13 @@ function QuestionStep({ {expandedOther && ( -
+