From 35596094c2959c190f54f15e4c8e30adfac2d4a9 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Thu, 13 Mar 2025 21:41:19 +0800 Subject: [PATCH] fix: clear select mode when importing files, closes #581 (#595) --- apps/readest-app/public/locales/zh-CN/translation.json | 2 +- apps/readest-app/public/locales/zh-TW/translation.json | 2 +- apps/readest-app/src/app/library/page.tsx | 1 + .../src/app/reader/components/settings/ThemeEditor.tsx | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/readest-app/public/locales/zh-CN/translation.json b/apps/readest-app/public/locales/zh-CN/translation.json index 4126a956..6e579cb6 100644 --- a/apps/readest-app/public/locales/zh-CN/translation.json +++ b/apps/readest-app/public/locales/zh-CN/translation.json @@ -236,7 +236,7 @@ "No supported files found. Supported formats: {{formats}}": "未找到支持的文件。支持的格式:{{formats}}", "Drop to Import Books": "拖放导入书籍", "Custom": "自定义", - "All the world's a stage,\nAnd all the men and women merely players;\nThey have their exits and their entrances,\nAnd one man in his time plays many parts,\nHis acts being seven ages.\n\n— William Shakespeare": "世界是座舞台, \n所有男女都只是演员; \n各有其出场和入场; \n每个人皆扮演许多角色, \n而演出共分为七个阶段。\n\n————威廉·莎士比亚", + "All the world's a stage,\nAnd all the men and women merely players;\nThey have their exits and their entrances,\nAnd one man in his time plays many parts,\nHis acts being seven ages.\n\n— William Shakespeare": "世界是座舞台, \n所有男女都只是演员; \n各有其出场和入场; \n每个人皆扮演许多角色, \n而演出共分为七个阶段。\n\n——威廉·莎士比亚", "Custom Theme": "自定义主题", "Theme Name": "主题名称", "Text Color": "文本颜色", diff --git a/apps/readest-app/public/locales/zh-TW/translation.json b/apps/readest-app/public/locales/zh-TW/translation.json index 48fffeb2..f161cc27 100644 --- a/apps/readest-app/public/locales/zh-TW/translation.json +++ b/apps/readest-app/public/locales/zh-TW/translation.json @@ -236,7 +236,7 @@ "No supported files found. Supported formats: {{formats}}": "未找到支援的檔案。支援的格式:{{formats}}", "Drop to Import Books": "拖放導入書籍", "Custom": "自定義", - "All the world's a stage,\nAnd all the men and women merely players;\nThey have their exits and their entrances,\nAnd one man in his time plays many parts,\nHis acts being seven ages.\n\n— William Shakespeare": "世界是一個舞台,\n所有的男人和女人都只是演員:\n他們有出口,也有入口;\n一個人在他的時代扮演許多角​​色。 \n\n— 威廉·莎士比亞", + "All the world's a stage,\nAnd all the men and women merely players;\nThey have their exits and their entrances,\nAnd one man in his time plays many parts,\nHis acts being seven ages.\n\n— William Shakespeare": "世界是一個舞台,\n所有的男人和女人都只是演員:\n他們有出口,也有入口;\n一個人在他的時代扮演許多角​​色。 \n\n——威廉·莎士比亞", "Custom Theme": "自定義主題", "Theme Name": "主題名稱", "Text Color": "文字顏色", diff --git a/apps/readest-app/src/app/library/page.tsx b/apps/readest-app/src/app/library/page.tsx index b8d4825b..87250dff 100644 --- a/apps/readest-app/src/app/library/page.tsx +++ b/apps/readest-app/src/app/library/page.tsx @@ -434,6 +434,7 @@ const LibraryPageContent = ({ searchParams }: { searchParams: ReadonlyURLSearchP }; const handleImportBooks = async () => { + setIsSelectMode(false); console.log('Importing books...'); let files; diff --git a/apps/readest-app/src/app/reader/components/settings/ThemeEditor.tsx b/apps/readest-app/src/app/reader/components/settings/ThemeEditor.tsx index ebde7c75..f1cf3e52 100644 --- a/apps/readest-app/src/app/reader/components/settings/ThemeEditor.tsx +++ b/apps/readest-app/src/app/reader/components/settings/ThemeEditor.tsx @@ -80,7 +80,7 @@ const ThemeEditor: React.FC = ({ customTheme, onSave, onDelete
- +
- +