From e675a351c37fc688bfa0288f214d3111e5f369eb Mon Sep 17 00:00:00 2001 From: kicer Date: Thu, 10 Sep 2026 08:44:10 +0800 Subject: [PATCH] =?UTF-8?q?UI=EF=BC=9A=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E6=94=B9=E8=BF=9B=E2=80=94=E2=80=94=E5=86=85?= =?UTF-8?q?=E5=B5=8C=E8=BE=93=E5=85=A5=E6=A1=86=E3=80=81=E5=8F=91=E9=80=81?= =?UTF-8?q?=E5=90=8E=E8=87=AA=E5=8A=A8=E6=B8=85=E7=A9=BA=E3=80=81=E6=96=B0?= =?UTF-8?q?=E5=8D=A1=E5=80=92=E5=BA=8F=E7=BD=AE=E9=A1=B6=E3=80=81=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E5=8D=95=E5=8D=A1=E5=85=B3=E9=97=AD=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 卡片行从 footer 顶部移入 .input-shell 内部顶端,随卡片撑高输入框;卡宽 210→158px,圆角/间距/字号收小 - send() 成功后 clearUploadCards():消息发出即认为文件提示使命完成,卡片整体清掉 - 新卡 prepend 到最前(最后上传显示在开头),入位后横向滚回左端 - 移除右上角 × 及其 CSS/监听:卡片不再单删,失败卡保留红字,统一由发送/切会话清空 --- app/server/public/css/style.css | 27 ++++++++++----------------- app/server/public/index.html | 28 +++++++++++----------------- 2 files changed, 21 insertions(+), 34 deletions(-) diff --git a/app/server/public/css/style.css b/app/server/public/css/style.css index 0135627..b1c3b1d 100644 --- a/app/server/public/css/style.css +++ b/app/server/public/css/style.css @@ -286,40 +286,33 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0 } .attach-chip .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; } .attach-chip .rm { color: var(--gray); display: flex; } -/* 上传文件卡片行(输入区上方):逐卡进度遮罩;卡多时横向滚动 */ +/* 上传文件卡片行(嵌在输入框内部顶端,由 .input-shell 的 gap 提供间距;逐卡进度遮罩;卡多时横向滚动) */ .up-cards { - display: flex; gap: 8px; margin-bottom: 8px; + display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; - scrollbar-width: thin; padding-bottom: 2px; + scrollbar-width: thin; -webkit-overflow-scrolling: touch; } .up-cards::-webkit-scrollbar { height: 4px; } .up-cards::-webkit-scrollbar-thumb { background: #ccd0da; border-radius: 2px; } .up-card { position: relative; flex: 0 0 auto; - display: flex; align-items: center; gap: 8px; - width: 210px; max-width: 62vw; - background: var(--surface); border: 1px solid #e3e6ee; border-radius: 12px; - padding: 9px 10px; overflow: hidden; + display: flex; align-items: center; gap: 7px; + width: 158px; max-width: 56vw; + background: var(--surface); border: 1px solid #e3e6ee; border-radius: 10px; + padding: 6px 8px; overflow: hidden; } .up-ico { color: var(--gray); display: flex; flex: none; } +.up-ico .ic { width: 18px; height: 18px; } .up-info { flex: 1; min-width: 0; } .up-name { font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } -.up-meta { font-size: 11px; color: var(--gray); margin-top: 2px; } -.up-x { - position: absolute; right: 5px; top: 5px; z-index: 2; - width: 18px; height: 18px; border-radius: 50%; border: none; cursor: pointer; padding: 0; - background: rgba(0, 0, 0, .06); color: var(--gray); - display: flex; align-items: center; justify-content: center; -} -.up-x:hover { background: rgba(0, 0, 0, .12); color: var(--ink); } -.up-x .ic { width: 11px; height: 11px; stroke-width: 2.4; } +.up-meta { font-size: 10.5px; color: var(--gray); margin-top: 1px; } .up-mask { position: absolute; inset: 0; z-index: 1; background: rgba(255, 255, 255, .78); display: flex; align-items: center; justify-content: center; } -.up-pct { font-size: 12px; font-weight: 600; color: var(--active); } +.up-pct { font-size: 11px; font-weight: 600; color: var(--active); } .up-card.err .up-pct { color: #c0392b; } /* 底部进度线:宽度由 --up-p 驱动;终态(完成/失败)收起 */ .up-card::after { diff --git a/app/server/public/index.html b/app/server/public/index.html index 902a561..309cab5 100644 --- a/app/server/public/index.html +++ b/app/server/public/index.html @@ -121,9 +121,9 @@