From 90de9ab086c3c54ef180ff4a5debe0ef0d0746ab Mon Sep 17 00:00:00 2001 From: kicer Date: Fri, 4 Sep 2026 09:57:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=96=87=E4=BB=B6=E5=85=A8?= =?UTF-8?q?=E9=80=89=E5=A4=8D=E9=80=89=E6=A1=86=E6=8C=AA=E5=88=B0=20footer?= =?UTF-8?q?=20=E5=B7=A6=E4=BE=A7=EF=BC=9A=E5=8E=BB=E5=A4=A7=E5=9C=86?= =?UTF-8?q?=E6=8C=89=E9=92=AE=EF=BC=8C=E6=94=B9=E4=B8=BA=E6=96=B9=E8=A7=92?= =?UTF-8?q?=2022=C3=9722=20=E5=A4=8D=E9=80=89=E6=A1=86=EF=BC=8C=E4=B8=8E?= =?UTF-8?q?=E8=A1=8C=E5=86=85=20.file-check=20=E9=A3=8E=E6=A0=BC=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E4=BD=86=E5=8F=AF=E5=8C=BA=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/server/public/css/style.css | 44 +++++++++++++++------------------ app/server/public/index.html | 35 +++++++++++++++----------- 2 files changed, 40 insertions(+), 39 deletions(-) diff --git a/app/server/public/css/style.css b/app/server/public/css/style.css index cc09726..1d1d21f 100644 --- a/app/server/public/css/style.css +++ b/app/server/public/css/style.css @@ -370,30 +370,6 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0 .files-panel-header .files-panel-title { flex: 1; min-width: 0; } -.files-panel-header-ops { - display: flex; align-items: center; gap: 8px; -} -.files-panel-toggle { - width: 32px; height: 32px; border-radius: 50%; - display: inline-flex; align-items: center; justify-content: center; - background: var(--surface); color: var(--gray); - border: none; cursor: pointer; padding: 0; - position: relative; - transition: background .15s ease, color .15s ease, opacity .15s ease; -} -.files-panel-toggle:active:not([disabled]) { background: var(--active-soft); } -.files-panel-toggle[disabled] { opacity: .5; cursor: not-allowed; } -.files-panel-toggle svg { - position: absolute; - width: 18px; height: 18px; - fill: none; stroke: currentColor; - stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; - display: none; -} -/* 三个状态:none -> +,some -> −,all -> √ */ -.files-panel-toggle[data-state="none"] .ic-plus { display: block; color: var(--active); } -.files-panel-toggle[data-state="some"] .ic-minus { display: block; color: var(--active); } -.files-panel-toggle[data-state="all"] .ic-check { display: block; color: var(--active); } /* 上传总进度条(.files-panel-header 中间,上传中显示):[轨道 | 百分比] 横排, 百分比走正常文档流,不再悬浮在 6px 高的轨道里,避免各种裁剪/像素取整导致文字显示不全 */ .files-panel-progress { @@ -443,6 +419,9 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0 .files-panel-count { font-size: 13px; color: var(--gray); } +.files-panel-footer-left { + display: flex; align-items: center; gap: 10px; min-width: 0; +} .files-panel-actions { display: flex; align-items: center; gap: 12px; } @@ -501,6 +480,23 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0 } .files-panel .file-row.selected .file-check::after { opacity: 1; } +/* 底部"全选"复选框:复用 .file-check 的尺寸与对勾伪元素,但用方角、与行内圆区分开。 + 状态由 data-state 决定(不进 .file-row);仅 .files-panel-check 选择器优先级高于 .file-check。 */ +.files-panel .files-panel-check { + border-radius: 5px; /* 覆盖行内 50%,变方角 */ + margin-top: 0; /* 覆盖行内 2px 偏移 */ + transition: border-color .15s ease, background .15s ease, opacity .15s ease; +} +.files-panel-check[data-state="all"] { + background: var(--active); border-color: var(--active); +} +.files-panel-check[data-state="all"]::after { opacity: 1; } +.files-panel-check[data-state="some"] { + background: var(--active); border-color: var(--active); +} +.files-panel-check[data-state="some"]::after { opacity: 1; } /* 部分选中:同一表现,避免误导 */ +.files-panel-check[aria-disabled="true"] { opacity: .4; cursor: not-allowed; } + /* 主区域:名称 + 副信息(图标 + 大小) */ .files-panel .file-main { flex: 1; min-width: 0; diff --git a/app/server/public/index.html b/app/server/public/index.html index e8339da..68aa19b 100644 --- a/app/server/public/index.html +++ b/app/server/public/index.html @@ -113,17 +113,10 @@
任务文件 -
- - -
+