From 9f4aa83e2216ec113d7561e3f4da2894b57b54f1 Mon Sep 17 00:00:00 2001 From: x1ao4 Date: Sun, 14 Sep 2025 03:55:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=B5=84=E6=BA=90=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E7=BB=93=E6=9E=9C=E8=BF=9E=E7=BB=AD=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在资源搜索的选择需转存的文件夹模态框中添加上一个/下一个导航按钮 - 支持在搜索结果中连续浏览,无需关闭模态框重新选择 - 在左下角显示当前资源序号信息(第 X 个资源) --- app/static/css/main.css | 34 ++++++++++++ app/templates/index.html | 110 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 143 insertions(+), 1 deletion(-) diff --git a/app/static/css/main.css b/app/static/css/main.css index b62f75e..50c0c5d 100644 --- a/app/static/css/main.css +++ b/app/static/css/main.css @@ -7734,6 +7734,40 @@ div:has(> .collapse:not(.show)):has(+ .row.title[title^="资源搜索"]) { color: var(--dark-text-color); } +/* 资源连续浏览按钮样式 */ +.resource-navigation-buttons { + display: flex; + gap: 8px; + margin-right: 4px; +} + +.resource-navigation-buttons .btn { + min-width: 60px; + font-size: 0.85rem; +} + +/* 资源导航按钮样式(与模态框中的btn-primary保持一致) */ +.resource-navigation-buttons .btn:not(:disabled) { + background-color: var(--focus-border-color); + border-color: var(--focus-border-color); + font-size: 0.85rem; +} + +/* 资源导航按钮禁用状态样式(与文件整理页面保持一致) */ +.resource-navigation-buttons .btn:disabled { + color: #fff !important; + background-color: var(--focus-border-color) !important; + border-color: var(--focus-border-color) !important; + opacity: 0.65; + cursor: pointer; +} + +/* 资源导航按钮正常状态悬停样式 */ +.resource-navigation-buttons .btn:not(:disabled):hover { + background-color: #0A42CC !important; + border-color: #0A42CC !important; +} + /* 显示设置:拖拽时显示“移动”而非“添加”视觉提示 */ .draggable-item { cursor: move; /* 显示移动光标 */ diff --git a/app/templates/index.html b/app/templates/index.html index 00a4b5e..482770a 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -2430,8 +2430,26 @@