From 67537d699558a63e5182531cb22d59f77f4ce38a Mon Sep 17 00:00:00 2001 From: MT-Fire <798521692@qq.com> Date: Wed, 11 Mar 2026 11:15:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8E=86=E5=8F=B2=E7=BB=86=E8=8A=82?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E7=8E=B0=E5=9C=A8=E8=A2=AB=E7=A7=B0=E4=B8=BA?= =?UTF-8?q?=E9=98=85=E8=AF=BB=E7=95=8C=E9=9D=A2=EF=BC=9B=E6=9B=B4=E6=94=B9?= =?UTF-8?q?=E9=98=85=E8=AF=BB=E7=95=8C=E9=9D=A2=E7=9A=84=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E3=80=82=E6=96=B0=E5=A2=9E=E6=8C=89=E6=B2=89?= =?UTF-8?q?=E6=B5=B8=E6=A8=A1=E5=BC=8F=E6=8C=89=E9=92=AE=E5=90=8E=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5F11=E5=85=A8=E5=B1=8F=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/history_detail/02-layout/layout.css | 2 +- css/history_detail/04-features/markdown-content.css | 2 +- index.html | 2 +- js/chatbot/ui/chatbot-ui.js | 2 +- js/ui/immersive_layout_logic.js | 10 ++++++++++ public/pdfjs/web/viewer.css | 11 ++++++----- public/pdfjs/web/viewer.html | 12 ++++++++---- 7 files changed, 28 insertions(+), 13 deletions(-) diff --git a/css/history_detail/02-layout/layout.css b/css/history_detail/02-layout/layout.css index 6554686..964aa0e 100644 --- a/css/history_detail/02-layout/layout.css +++ b/css/history_detail/02-layout/layout.css @@ -34,7 +34,7 @@ body { display: flex; gap: 1.5rem; /* 大幅增加间距,更现代 */ border-bottom: 1px solid var(--color-border-light); - margin-bottom: 2.5rem; + /* margin-bottom: 2.5rem; */ padding-bottom: 0; } diff --git a/css/history_detail/04-features/markdown-content.css b/css/history_detail/04-features/markdown-content.css index 92c2aff..1ee8de5 100644 --- a/css/history_detail/04-features/markdown-content.css +++ b/css/history_detail/04-features/markdown-content.css @@ -78,7 +78,7 @@ h2 { .history-export-controls { position: relative; - margin-bottom: 16px; + /* margin-bottom: 16px; */ } .export-panel-backdrop { diff --git a/index.html b/index.html index b6ef1fa..6185d08 100644 --- a/index.html +++ b/index.html @@ -1325,7 +1325,7 @@
- diff --git a/js/chatbot/ui/chatbot-ui.js b/js/chatbot/ui/chatbot-ui.js index 3bf8e00..4a54ac5 100644 --- a/js/chatbot/ui/chatbot-ui.js +++ b/js/chatbot/ui/chatbot-ui.js @@ -1222,7 +1222,7 @@ function initChatbotUI() {
-
+
AI 智能助手 diff --git a/js/ui/immersive_layout_logic.js b/js/ui/immersive_layout_logic.js index cd661da..28fc894 100644 --- a/js/ui/immersive_layout_logic.js +++ b/js/ui/immersive_layout_logic.js @@ -734,11 +734,21 @@ simpleToggleBtn.innerHTML = ''; simpleToggleBtn.title = '退出简单沉浸模式'; localStorage.setItem(LS_SIMPLE_IMMERSIVE_KEY, 'true'); + + // 自动进入全屏 + document.documentElement.requestFullscreen().catch(err => { + console.warn('无法进入全屏模式:', err); + }); } else { // 退出简单沉浸模式 document.body.classList.remove('simple-immersive-pdf-mode'); document.body.classList.remove('simple-immersive-pdf-mode'); + // 如果在全屏状态,退出全屏 + if (document.fullscreenElement) { + document.exitFullscreen(); + } + // 恢复container的padding if (mainContainer && mainContainer.dataset.originalPadding !== undefined) { mainContainer.style.padding = mainContainer.dataset.originalPadding; diff --git a/public/pdfjs/web/viewer.css b/public/pdfjs/web/viewer.css index 2be1ecf..48b4077 100644 --- a/public/pdfjs/web/viewer.css +++ b/public/pdfjs/web/viewer.css @@ -2000,7 +2000,7 @@ --doorhanger-icon-opacity: 0.9; --main-color: rgba(12, 12, 13, 1); - --body-bg-color: rgba(212, 212, 215, 1); + --body-bg-color: #f3f4f5; --progressBar-color: rgba(10, 132, 255, 1); --progressBar-bg-color: rgba(221, 221, 222, 1); --progressBar-blend-color: rgba(116, 177, 239, 1); @@ -2011,7 +2011,7 @@ --sidebar-narrow-bg-color: rgba(212, 212, 215, 0.9); --sidebar-toolbar-bg-color: rgba(245, 246, 247, 1); - --toolbar-bg-color: rgba(249, 249, 250, 1); + --toolbar-bg-color: #ffffff; --toolbar-border-color: rgba(184, 184, 184, 1); --toolbar-box-shadow: 0 1px 0 var(--toolbar-border-color); --toolbar-border-bottom: none; @@ -2019,7 +2019,7 @@ rgba(0, 0, 0, 0.25), 0 1px 0 rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1); --toolbarSidebar-border-bottom: none; - --button-hover-color: rgba(221, 222, 223, 1); + --button-hover-color: #e6ecfb; --toggled-btn-color: rgba(0, 0, 0, 1); --toggled-btn-bg-color: rgba(0, 0, 0, 0.3); --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4); @@ -2308,6 +2308,7 @@ body { z-index: 9999; cursor: default; font: message-box; + background-color: var(--toolbar-bg-color); } :is(.toolbar, .editorParamsToolbar, .findbar, #sidebarContainer) @@ -2345,7 +2346,7 @@ body { position: relative; height: 32px; background-color: var(--toolbar-bg-color); - box-shadow: var(--toolbar-box-shadow); + /* box-shadow: var(--toolbar-box-shadow); */ border-bottom: var(--toolbar-border-bottom); } @@ -3181,7 +3182,7 @@ a:is(.toolbarButton, .secondaryToolbarButton)[href="#"] { user-select: none; } #thumbnailView { - width: calc(100% - 60px); + width: 100%; padding: 10px 30px 0; } diff --git a/public/pdfjs/web/viewer.html b/public/pdfjs/web/viewer.html index 5763b86..be1294c 100644 --- a/public/pdfjs/web/viewer.html +++ b/public/pdfjs/web/viewer.html @@ -29,6 +29,9 @@ See https://github.com/adobe-type-tools/cmap-resources + + + @@ -269,19 +272,20 @@ See https://github.com/adobe-type-tools/cmap-resources
- - - -
+