diff --git a/src/App.tsx b/src/App.tsx index e4bc283..938f6bf 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,6 @@ import { useEffect, useMemo, useRef, useState } from "react"; import { FloatingActions } from "./components/FloatingActions"; +import { ScriptNav } from "./components/ScriptNav"; import { ScriptSummary } from "./components/ScriptSummary"; import { ScriptView } from "./components/ScriptView"; import { toggleCharactersByMatch } from "./lib/characterToggle"; @@ -153,6 +154,13 @@ export function App() { noVoice={noVoice} onToggleNoVoice={toggleNoVoice} /> + {dialogues.length > 0 && ( + + )} ); diff --git a/src/components/FloatingActions.tsx b/src/components/FloatingActions.tsx index 487e10b..42b7a3e 100644 --- a/src/components/FloatingActions.tsx +++ b/src/components/FloatingActions.tsx @@ -3,34 +3,10 @@ type Props = { }; export function FloatingActions({ onExportText }: Props) { - const scrollToStart = () => - window.scrollTo({ left: 0, top: 0, behavior: "smooth" }); - const scrollToEnd = () => - window.scrollTo({ - left: -document.documentElement.scrollWidth, - top: 0, - behavior: "smooth", - }); const handlePrint = () => window.print(); return (
- - + + + +
+ ); +} diff --git a/src/components/ScriptView.tsx b/src/components/ScriptView.tsx index a1fc609..837d5c0 100644 --- a/src/components/ScriptView.tsx +++ b/src/components/ScriptView.tsx @@ -36,6 +36,7 @@ export function ScriptView({