diff --git a/frontend/src/pages/QuizPage.jsx b/frontend/src/pages/QuizPage.jsx index fd74fa9..3298c02 100644 --- a/frontend/src/pages/QuizPage.jsx +++ b/frontend/src/pages/QuizPage.jsx @@ -232,7 +232,8 @@ useEffect(() => { const safeNavigate = (targetIdx) => { setCurrentIdx(targetIdx) setTimeout(() => { - document.querySelector('.question-card')?.scrollIntoView({ behavior: 'smooth', block: 'start' }) + // Scroll to top of page so user sees the full question from the start + window.scrollTo({ top: 0, behavior: 'smooth' }) }, 50) }