Fixed some more issues with the Speaking
This commit is contained in:
@@ -95,7 +95,7 @@ export default function Speaking({id, title, text, video_url, type, prompts, suf
|
||||
|
||||
return (
|
||||
<div className="flex flex-col h-full w-full gap-9">
|
||||
<Modal className="!w-96 aspect-square" isOpen={isPromptsModalOpen} onClose={() => setIsPromptsModalOpen(false)}>
|
||||
<Modal title="Prompts" className="!w-96 aspect-square" isOpen={isPromptsModalOpen} onClose={() => setIsPromptsModalOpen(false)}>
|
||||
<div className="flex flex-col items-center justify-center gap-4 w-full h-full">
|
||||
<div className="flex flex-col gap-1 ml-4">
|
||||
{prompts.map((x, index) => (
|
||||
@@ -126,7 +126,7 @@ export default function Speaking({id, title, text, video_url, type, prompts, suf
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<div className="flex gap-6 items-center">
|
||||
<div className="flex flex-col gap-6 items-center">
|
||||
{video_url && (
|
||||
<div className="flex flex-col gap-4 w-full items-center">
|
||||
<video key={id} autoPlay controls className="max-w-3xl rounded-xl">
|
||||
@@ -134,11 +134,7 @@ export default function Speaking({id, title, text, video_url, type, prompts, suf
|
||||
</video>
|
||||
</div>
|
||||
)}
|
||||
{prompts && prompts.length > 0 && (
|
||||
<div className="w-full aspect-square bg-white shadow rounded-xl flex items-center justify-center">
|
||||
<Button onClick={() => setIsPromptsModalOpen(true)}>View Prompts</Button>
|
||||
</div>
|
||||
)}
|
||||
{prompts && prompts.length > 0 && <Button onClick={() => setIsPromptsModalOpen(true)}>View Prompts</Button>}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user