fix: refine answer display in purpose practice

This commit is contained in:
ittoview
2026-05-10 15:43:34 +01:00
parent a1b8f3064d
commit f6f165e148
3 changed files with 28 additions and 30 deletions

View File

@@ -10,6 +10,7 @@ interface ProficientInputAreaProps {
onChange: (value: string) => void
onCompositionStart: () => void
onCompositionEnd: (value: string) => void
showLockedHint?: boolean
}
export function ProficientInputArea({
@@ -20,6 +21,7 @@ export function ProficientInputArea({
onChange,
onCompositionStart,
onCompositionEnd,
showLockedHint = true,
}: ProficientInputAreaProps) {
const inputRef = useRef<HTMLInputElement | null>(null)
@@ -55,7 +57,7 @@ export function ProficientInputArea({
/>
<AnimatePresence>
{inputLocked && (
{showLockedHint && inputLocked && (
<motion.div
initial={{ opacity: 0, y: -6 }}
animate={{ opacity: 1, y: 0 }}