From 4790d9788bc449951342c5a0a2120c4d40252f8b Mon Sep 17 00:00:00 2001 From: Lucas Santana Date: Wed, 29 Jan 2025 14:15:59 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20Ajustando=20p=C3=A1igna=20de=20leitura?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/student-dashboard/StoryPage.tsx | 63 ++++++++++++----------- 1 file changed, 34 insertions(+), 29 deletions(-) diff --git a/src/pages/student-dashboard/StoryPage.tsx b/src/pages/student-dashboard/StoryPage.tsx index b8279e3..d1d7abb 100644 --- a/src/pages/student-dashboard/StoryPage.tsx +++ b/src/pages/student-dashboard/StoryPage.tsx @@ -394,7 +394,7 @@ export function StoryPage() { const { session } = useSession(); const { isUpperCase, toggleUppercase, isLoading } = useUppercasePreference(session?.user?.id); const { isHighlighted: isSyllablesEnabled, toggleHighlight: toggleSyllables } = useSyllables(); - const [fontSize, setFontSize] = useState(18); + const [fontSize, setFontSize] = useState(24); const [readingSpeed, setReadingSpeed] = useState(60); // 60 palavras por minuto const [letterSpacing, setLetterSpacing] = useState(0); const [wordSpacing, setWordSpacing] = useState(0); @@ -854,19 +854,39 @@ export function StoryPage() {

{story?.title}

- {/* 3. Texto da História */} -
-
- {renderHighlightedText(story?.content?.pages?.[currentPage]?.text || '')} + {/* Container de duas colunas */} +
+ {/* 3. Texto da História - Coluna Esquerda (40%) */} +
+
+ {renderHighlightedText(story?.content?.pages?.[currentPage]?.text || '')} +
+ + {/* 5. Imagem da História - Coluna Direita (60%) */} + {!focusMode.isActive && ( +
+ {story?.content?.pages?.[currentPage]?.image ? ( + + ) : ( +
+

Sem imagem para esta página

+
+ )} +
+ )}
{/* 4. Controles de Navegação */} @@ -896,22 +916,7 @@ export function StoryPage() {
- {/* 5. Imagem da História - Agora com controle de visibilidade */} - {!focusMode.isActive && ( -
- {story?.content?.pages?.[currentPage]?.image ? ( - - ) : ( -
-

Sem imagem para esta página

-
- )} -
- )} + {/* 6. Controle de Gravação */} {/*