fix: add scrollable container to Memorize card to prevent button jumping
This commit is contained in:
@@ -366,8 +366,9 @@ 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}`}>
|
||||||
{isDictation ? (
|
<div className="flex-1 overflow-y-auto">
|
||||||
|
{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]">
|
||||||
{currentCard.ipa ? (
|
{currentCard.ipa ? (
|
||||||
@@ -411,6 +412,7 @@ const Memorize: React.FC<MemorizeProps> = ({ deckId, deckName }) => {
|
|||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<HStack justify="center">
|
<HStack justify="center">
|
||||||
|
|||||||
Reference in New Issue
Block a user