From 022e7078c5177c806108edc0a492b35212e476fe Mon Sep 17 00:00:00 2001 From: kicer Date: Thu, 3 Sep 2026 16:09:35 +0800 Subject: [PATCH] =?UTF-8?q?v2:=20=E6=96=87=E4=BB=B6=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=BA=95=E9=83=A8=E5=BC=B9=E5=87=BA=E6=B5=AE?= =?UTF-8?q?=E5=B1=82+=E9=81=AE=E7=BD=A9,=E7=9B=96=E4=BD=8F=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E5=8C=BA;scroll-bottom-btn=E4=BD=8D=E4=BA=8E=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF=E4=B8=8B=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/server/public/css/style.css | 29 +++++++++++++------ app/server/public/index.html | 49 +++++++++++++++++---------------- 2 files changed, 47 insertions(+), 31 deletions(-) diff --git a/app/server/public/css/style.css b/app/server/public/css/style.css index cf5d4a8..cbc1894 100644 --- a/app/server/public/css/style.css +++ b/app/server/public/css/style.css @@ -36,6 +36,7 @@ input, textarea { font: inherit; color: inherit; border: 0; outline: none; backg flex-direction: column; position: relative; background: var(--page); + overflow: hidden; /* 裁掉底部浮层收起时滑出屏幕的部分 */ } /* ================= 顶部导航栏 ================= */ @@ -311,18 +312,30 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0 } .send-btn:active { opacity: 0.85; } -/* ================= 任务文件面板(同步 index 的 files-panel;仅保留上传) ================= */ -.files-panel { - flex: none; display: flex; flex-direction: column; - max-height: 45vh; overflow: hidden; - margin-bottom: 8px; - border: 1px solid var(--border); border-radius: 14px; - background: var(--page); +/* ================= 任务文件面板浮层(底部弹出:盖住输入区,背景遮罩;scroll-bottom-btn 在其下方) ================= */ +#files-mask { + position: absolute; inset: 0; z-index: 44; + background: rgba(10, 14, 30, 0.38); + opacity: 0; pointer-events: none; transition: opacity .22s; } +#files-mask.show { opacity: 1; pointer-events: auto; } +.files-panel { + position: absolute; left: 0; right: 0; bottom: 0; z-index: 45; + display: flex; flex-direction: column; + max-height: 62%; + background: var(--page); + border-radius: 16px 16px 0 0; + box-shadow: 0 -6px 24px rgba(20, 30, 70, 0.16); + transform: translateY(105%); transition: transform .25s ease; /* 收起时滑出屏幕 */ + padding-bottom: env(safe-area-inset-bottom, 0px); + overflow: hidden; +} +.files-panel.open { transform: translateY(0); } .files-panel-header { flex: none; display: flex; align-items: center; justify-content: space-between; - padding: 9px 12px 9px 14px; font-size: 14px; font-weight: 600; + padding: 12px 14px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--border); + background: var(--page); } .files-panel-header .file-upload { width: 30px; height: 30px; border-radius: 50%; diff --git a/app/server/public/index.html b/app/server/public/index.html index 40bfd83..e876000 100644 --- a/app/server/public/index.html +++ b/app/server/public/index.html @@ -61,18 +61,6 @@