From c8f0c09426421b92397d525531cbabfe36f46bdd Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Wed, 15 Jan 2025 19:11:05 +0100 Subject: [PATCH] Use dynamic viewport unit dvh to avoid page covered by toolbar and address bar in mobile browsers (#160) --- CONTRIBUTING.md | 9 +++++---- apps/readest-app/src/app/library/page.tsx | 2 +- apps/readest-app/src/app/reader/components/Reader.tsx | 2 +- .../src/app/reader/components/ReaderContent.tsx | 4 ++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6bb81abb..0793fa66 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -77,10 +77,11 @@ Now you're all setup and can start implementing your changes. This project is a monorepo. The code for the `readest-app` is in the `app/readest-app` directory. Here are some useful scripts for developing the frontend only without compiling Tauri: -| Command | Description | -| ---------------- | -------------------------------------------------- | -| `pnpm dev-web` | Starts the development server for the web app only | -| `pnpm build-web` | Builds the web app | +| Command | Description | +| ------------------------------------------ | -------------------------------------------------- | +| `pnpm dev-web` | Starts the development server for the web app only | +| `TAURI_DEV_HOST=192.168.1.22 pnpm dev-web` | Start the dev server on a LAN address | +| `pnpm build-web` | Builds the web app | Recommended Visual Studio Code plugins for development: diff --git a/apps/readest-app/src/app/library/page.tsx b/apps/readest-app/src/app/library/page.tsx index b8d59f3b..54189bf0 100644 --- a/apps/readest-app/src/app/library/page.tsx +++ b/apps/readest-app/src/app/library/page.tsx @@ -233,7 +233,7 @@ const LibraryPage = () => { } return ( -
+
= ({ ids }) => { return ( library.length > 0 && settings.globalReadSettings && ( -
+
diff --git a/apps/readest-app/src/app/reader/components/ReaderContent.tsx b/apps/readest-app/src/app/reader/components/ReaderContent.tsx index 080509b9..02592d63 100644 --- a/apps/readest-app/src/app/reader/components/ReaderContent.tsx +++ b/apps/readest-app/src/app/reader/components/ReaderContent.tsx @@ -145,7 +145,7 @@ const ReaderContent: React.FC<{ ids?: string; settings: SystemSettings }> = ({ i setTimeout(() => setLoading(true), 300); return ( loading && ( -
+
) @@ -153,7 +153,7 @@ const ReaderContent: React.FC<{ ids?: string; settings: SystemSettings }> = ({ i } return ( -
+