From 32a23fa5ab1e891400b88c2b6f4939632bdfdd1d Mon Sep 17 00:00:00 2001 From: kicer Date: Fri, 4 Sep 2026 08:53:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=99=BE=E5=88=86=E6=AF=94?= =?UTF-8?q?=E6=94=B9=E8=B5=B0=E6=AD=A3=E5=B8=B8=E6=96=87=E6=A1=A3=E6=B5=81?= =?UTF-8?q?=EF=BC=9A=E8=BF=9B=E5=BA=A6=E6=9D=A1=E6=94=B9=E4=B8=BA[?= =?UTF-8?q?=E8=BD=A8=E9=81=93|=E7=99=BE=E5=88=86=E6=AF=94]=E6=A8=AA?= =?UTF-8?q?=E6=8E=92=EF=BC=8C=E6=A0=B9=E6=B2=BB=E6=96=87=E5=AD=97=E8=A2=AB?= =?UTF-8?q?=E8=A3=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/server/public/css/style.css | 16 ++++++++-------- app/server/public/index.html | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/server/public/css/style.css b/app/server/public/css/style.css index 465a55a..b1cd346 100644 --- a/app/server/public/css/style.css +++ b/app/server/public/css/style.css @@ -373,12 +373,14 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0 background: var(--active-soft); color: var(--active); cursor: pointer; } .files-panel-header .file-upload:active { background: var(--active); color: #fff; } -/* 上传总进度条(header 中间,上传中显示) */ +/* 上传总进度条(header 中间,上传中显示):[轨道 | 百分比] 横排, + 百分比走正常文档流,不再悬浮在 6px 高的轨道里,避免各种裁剪/像素取整导致文字显示不全 */ .files-panel-progress { - flex: 1; min-width: 0; height: 6px; margin: 0 10px; - background: var(--surface); border-radius: 3px; position: relative; - /* 不用 overflow:hidden:会裁掉右侧 10px 高的百分比文字(.pct); - 填充条 .bar 自带 3px 圆角,无需轨道裁剪 */ + flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; margin: 0 10px; +} +.files-panel-progress .fp-track { + flex: 1; min-width: 0; height: 6px; + background: var(--surface); border-radius: 3px; overflow: hidden; } .files-panel-progress .bar { height: 100%; width: 0; @@ -387,9 +389,7 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0 transition: width .12s linear; } .files-panel-progress .pct { - position: absolute; right: 0; top: 50%; transform: translateY(-50%); - font-size: 10px; color: var(--gray); background: var(--page); padding: 0 4px; line-height: 1; - white-space: nowrap; pointer-events: none; + flex: none; font-size: 10px; color: var(--gray); line-height: 1; white-space: nowrap; } .files-panel-header .file-upload svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; diff --git a/app/server/public/index.html b/app/server/public/index.html index 3784496..024210f 100644 --- a/app/server/public/index.html +++ b/app/server/public/index.html @@ -114,7 +114,7 @@
任务文件