From d5f43cb98bb5d3f99ba8ef5282fd221bc021c26d Mon Sep 17 00:00:00 2001 From: nicholaspsmith Date: Wed, 14 Jan 2026 11:53:39 -0500 Subject: [PATCH] Fix flashcard text overflow on mobile devices Co-Authored-By: Claude --- components/quiz/QuizCard.tsx | 16 ++++++++-------- components/study/FlashcardMode.tsx | 14 +++++++------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/components/quiz/QuizCard.tsx b/components/quiz/QuizCard.tsx index 21e98ec..3d56da7 100644 --- a/components/quiz/QuizCard.tsx +++ b/components/quiz/QuizCard.tsx @@ -110,9 +110,9 @@ export default function QuizCard({ flashcard, onRate, onDelete }: QuizCardProps)
{/* Front Face - Question Only */}
-
+
{/* Question Section */} -
+

{flashcard.question} @@ -143,20 +143,20 @@ export default function QuizCard({ flashcard, onRate, onDelete }: QuizCardProps) {/* Back Face - Question + Answer + Rating */}

-
+
{/* Question (for context) */} -
+

Question

-

+

{flashcard.question}

{/* Answer Section */}
@@ -167,7 +167,7 @@ export default function QuizCard({ flashcard, onRate, onDelete }: QuizCardProps) Answer

{flashcard.answer} diff --git a/components/study/FlashcardMode.tsx b/components/study/FlashcardMode.tsx index 55613f2..b04df2c 100644 --- a/components/study/FlashcardMode.tsx +++ b/components/study/FlashcardMode.tsx @@ -117,7 +117,7 @@ export default function FlashcardMode({ {/* Card - T005: Perspective wrapper with key to reset on card change */}

{/* T006: 3D flip animation with transform-style and rotateY */} @@ -129,12 +129,12 @@ export default function FlashcardMode({ > {/* T007: Front face */}
-
+

Question

-

+

{question}

@@ -145,12 +145,12 @@ export default function FlashcardMode({ {/* T007: Back face - pre-rotated 180deg, solid background required for backface-visibility */}

-
+

Answer

-

+

{answer}