fix: add scrollable container to Memorize card to prevent button jumping
This commit is contained in:
@@ -366,7 +366,8 @@ const Memorize: React.FC<MemorizeProps> = ({ deckId, deckName }) => {
|
|||||||
</HStack>
|
</HStack>
|
||||||
</VStack>
|
</VStack>
|
||||||
|
|
||||||
<div className={`bg-white border border-gray-200 rounded-xl shadow-sm mb-6 ${myFont.className}`}>
|
<div className={`bg-white border border-gray-200 rounded-xl shadow-sm mb-6 h-[50dvh] flex flex-col ${myFont.className}`}>
|
||||||
|
<div className="flex-1 overflow-y-auto">
|
||||||
{isDictation ? (
|
{isDictation ? (
|
||||||
<>
|
<>
|
||||||
<VStack align="center" justify="center" gap={4} className="p-8 min-h-[20dvh]">
|
<VStack align="center" justify="center" gap={4} className="p-8 min-h-[20dvh]">
|
||||||
@@ -412,6 +413,7 @@ const Memorize: React.FC<MemorizeProps> = ({ deckId, deckName }) => {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<HStack justify="center">
|
<HStack justify="center">
|
||||||
{!showAnswer ? (
|
{!showAnswer ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user