From d2c852d6f0a4fca0aef3b8c7eaef8052ca46bfa7 Mon Sep 17 00:00:00 2001 From: Fendy Date: Tue, 8 Sep 2026 21:29:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(web):=20iconify=20reader=20chrome,=20move?= =?UTF-8?q?=20=E8=BF=9E=E8=AF=BB/=E9=A2=84=E8=AF=BB=20into=20=E6=9B=B4?= =?UTF-8?q?=E5=A4=9A=20menu=20with=20slider?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/CHANGELOG_web.md | 3 + frontend/src/components/Bookmarks.tsx | 23 +++++--- frontend/src/components/reader-nav.tsx | 15 +++-- frontend/src/index.css | 3 + frontend/src/readers/CbzReader.tsx | 82 ++++++++++++++++++-------- frontend/src/readers/EpubReader.tsx | 18 ++++-- frontend/src/readers/PdfReader.tsx | 26 ++++---- frontend/src/readers/TextReader.tsx | 25 +++++--- 8 files changed, 132 insertions(+), 63 deletions(-) diff --git a/docs/CHANGELOG_web.md b/docs/CHANGELOG_web.md index 5d7f693..351b7f6 100644 --- a/docs/CHANGELOG_web.md +++ b/docs/CHANGELOG_web.md @@ -31,6 +31,9 @@ The format loosely follows Keep a Changelog and can be adapted to the team's hab ### Changed / 变更 +- Reader chrome is no longer text-only: lucide icons accompany 导航/上一章/下一章/翻页/抽屉选项卡/书签操作, while 连读 and 预读 (now a 0–3 slider) collapse into a 更多 menu in the CBZ bar. +- 阅读器工具条告别纯文字:导航/上一章/下一章/翻页/抽屉选项卡/书签操作均配 lucide 图标;连读与预读(改为 0–3 滑条)收进 CBZ 工具条的「更多」菜单。 + - Reader navigation tightened into one left-side drawer opened by a single 导航 toolbar button: 目录 and 书签 are now tabs of a sidebar shared by all four readers, following the reader theme's colors; the button lands on 目录 when a TOC exists, otherwise straight on bookmarks (flat archives, EPUB, PDF show no tab bar); the separate right-side bookmark panel and the per-reader TOC popovers are gone. - 阅读器导航收紧为统一左侧抽屉,工具条只留一个「导航」按钮:目录与书签成为四个阅读器共用侧边栏内的两个选项卡,配色跟随阅读器主题;有目录时默认落在「目录」,否则直达书签(平铺包、EPUB、PDF 不显示选项卡条);原右侧书签面板与各阅读器自绘目录浮层移除。 diff --git a/frontend/src/components/Bookmarks.tsx b/frontend/src/components/Bookmarks.tsx index 2a421c8..be99188 100644 --- a/frontend/src/components/Bookmarks.tsx +++ b/frontend/src/components/Bookmarks.tsx @@ -1,4 +1,5 @@ import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; +import { Check, Pencil, Plus, X } from "lucide-react"; import { useState } from "react"; import { api } from "../api/client"; import type { Book } from "../api/types"; @@ -64,8 +65,13 @@ export function BookmarksTab({ if (e.key === "Enter" && !add.isPending) add.mutate(); }} /> -