diff --git a/src/pages/student-dashboard/StoryPage.tsx b/src/pages/student-dashboard/StoryPage.tsx index 79a2e7a..90ec26b 100644 --- a/src/pages/student-dashboard/StoryPage.tsx +++ b/src/pages/student-dashboard/StoryPage.tsx @@ -293,6 +293,7 @@ function RecordingHistoryCard({ recording }: { recording: StoryRecording }) { text={recording.transcription || 'Transcrição não disponível'} isUpperCase={isUpperCase} className="text-sm text-gray-600 whitespace-pre-wrap" + highlightSyllables={isHighlighted} /> diff --git a/src/pages/student-dashboard/StudentDashboardPage.tsx b/src/pages/student-dashboard/StudentDashboardPage.tsx index b0fea81..22b77bd 100644 --- a/src/pages/student-dashboard/StudentDashboardPage.tsx +++ b/src/pages/student-dashboard/StudentDashboardPage.tsx @@ -77,7 +77,7 @@ export function StudentDashboardPage() { .eq('student_id', session.user.id) .eq('story_pages.page_number', 1) // Garante que pegamos a primeira página .order('created_at', { ascending: false }) - .limit(3); + .limit(6); if (error) throw error; setRecentStories(data || []); @@ -252,10 +252,7 @@ export function StudentDashboardPage() { {story.cover && (
{story.title} navigate(`/aluno/historias/${story.id}`)} > - {story.cover && ( + {!story.pages?.[0]?.image_url && ( +
+ +
+ )} + {story.pages?.[0]?.image_url && (
{story.title} { + e.currentTarget.style.display = 'none'; + }} />
)}