From 54becc8fb30dc7eaec5e227f1efb05db15513565 Mon Sep 17 00:00:00 2001 From: Tomas Mirchev Date: Sun, 6 Apr 2025 00:48:29 +0000 Subject: [PATCH] update --- reader/src/App.jsx | 22 ++++++++++++++++++---- reader/src/icons/Icons.jsx | 21 +++++++++++++++++++++ 2 files changed, 39 insertions(+), 4 deletions(-) diff --git a/reader/src/App.jsx b/reader/src/App.jsx index 5a9d982..15d9cba 100644 --- a/reader/src/App.jsx +++ b/reader/src/App.jsx @@ -5,6 +5,7 @@ import { MenuBookIcon, MyLocationIcon, TitleIcon, + WidthIcon, } from "./icons/Icons"; import structureOriginal from "./structure.json"; @@ -91,7 +92,7 @@ export default function App() { const [selectedIndex, setSelectedIndex] = useState(null); const [versions, setVersions] = useState(Array.from({ length: structure.length }, () => 0)); const [displayTitle, setDisplayTitle] = useState(true); - + const [isWideMode, setIsWideMode] = useState(false); function handleChange(i) { setSelectedIndex(i); setIsMenuOpen(false); @@ -111,7 +112,10 @@ export default function App() { displayTitle={displayTitle} >
- +
+ {window.innerWidth > 576 && ( + + )}
{structure[selectedIndex].files.length > 1 && (
@@ -190,7 +204,7 @@ export default function App() { ); } -export function Reader({ file }) { +export function Reader({ file, compact }) { const [content, setContent] = useState(null); const [isLoading, setIsLoading] = useState(true); const [error, setError] = useState(null); @@ -257,7 +271,7 @@ export function Reader({ file }) { } return ( -
+