From 83fd82911aaecf59630c401a886ed0135b298a74 Mon Sep 17 00:00:00 2001 From: kicer Date: Fri, 11 Sep 2026 08:37:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=9A=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E9=9D=A2=E6=9D=BF=E5=BA=95=E9=83=A8=E6=8A=BD?= =?UTF-8?q?=E5=B1=89=E5=8C=96=E2=80=94=E2=80=94=E5=9B=BA=E5=AE=9A=E9=AB=98?= =?UTF-8?q?=E5=BA=A6(=E9=BB=98=E8=AE=A446%/min=20240px/max=2085%=E8=A7=86?= =?UTF-8?q?=E5=8F=A3)=E5=88=87=E7=9B=AE=E5=BD=95=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E8=B7=B3=E5=8A=A8=E3=80=81=E5=88=97=E8=A1=A8=E5=86=85=E9=83=A8?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E3=80=81=E5=BA=95=E9=83=A8=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=A0=8F=E9=92=89=E6=AD=BB=EF=BC=9Bheader=20=E8=A1=8C=E5=86=85?= =?UTF-8?q?=E5=B1=85=E4=B8=AD=E7=9A=84=E6=8B=96=E6=8B=BD=E6=89=8B=E6=9F=84?= =?UTF-8?q?=E5=8F=AF=E4=B8=8A=E6=8B=89=E8=B0=83=E9=AB=98=EF=BC=8C=E6=8B=89?= =?UTF-8?q?=E5=88=B0=E5=BA=95=E7=BB=A7=E7=BB=AD=E4=B8=8B=E6=8B=89=E6=95=B4?= =?UTF-8?q?=E5=9D=97=E4=B8=8B=E6=BB=91=E6=94=B6=E8=B5=B7=EF=BC=9B=E6=8B=96?= =?UTF-8?q?=E6=8B=BD=E9=AB=98=E5=BA=A6=E4=BC=9A=E8=AF=9D=E5=86=85=E6=B2=BF?= =?UTF-8?q?=E7=94=A8=EF=BC=8C=E8=BD=AC=E5=B1=8F=E8=87=AA=E5=8A=A8=E9=87=8D?= =?UTF-8?q?=E9=92=B3=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/server/public/css/style.css | 18 ++++++++++-- app/server/public/index.html | 51 +++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 2 deletions(-) diff --git a/app/server/public/css/style.css b/app/server/public/css/style.css index ecf7145..4f04138 100644 --- a/app/server/public/css/style.css +++ b/app/server/public/css/style.css @@ -422,7 +422,9 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0 .files-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; flex-direction: column; - max-height: 62%; + /* 固定高度不随内容变化:切目录/删文件不再跳动,列表内部消化溢出; + 拖拽手柄可调(JS 写 inline height),min/max 兜底防撑爆/防缩没 */ + height: 46%; min-height: 240px; max-height: 85%; background: var(--page); border-radius: 16px 16px 0 0; box-shadow: 0 -6px 24px rgba(20, 30, 70, 0.16); @@ -431,8 +433,20 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0 overflow: hidden; } .files-panel.open { transform: translateY(0); } +/* 拖拽手柄:与标题/上传钮同行,行内水平居中的透明热区(宽 120px,此区域无其他控件); + 上拉放大(封顶 85% 视口),拉到最低后继续下拉整块下滑 → 收起面板 */ +.files-drag-handle { + position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); + width: 120px; + display: flex; align-items: center; justify-content: center; + cursor: ns-resize; touch-action: none; user-select: none; +} +.files-drag-handle::before { + content: ''; width: 40px; height: 4px; border-radius: 2px; background: var(--gray-light); +} .files-panel-header { - flex: none; display: flex; align-items: center; justify-content: space-between; + flex: none; position: relative; /* 拖拽手柄绝对定位贴顶,不占额外垂直高度 */ + display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--border); background: var(--page); diff --git a/app/server/public/index.html b/app/server/public/index.html index a711d52..56da3fa 100644 --- a/app/server/public/index.html +++ b/app/server/public/index.html @@ -176,6 +176,7 @@
+
任务文件