From 9f3b134007c7e4248a96862189a13fc58b60e8cf Mon Sep 17 00:00:00 2001 From: kkfluous Date: Sat, 28 Mar 2026 23:58:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=AD=9B=E9=80=89=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E6=94=B9=E4=B8=BAfixed=E5=AE=9A=E4=BD=8D=EF=BC=8C=E6=A1=8C?= =?UTF-8?q?=E9=9D=A2=E7=AB=AF=E5=8F=B3=E4=BE=A7=E6=B5=AE=E5=8A=A8=E4=B8=8D?= =?UTF-8?q?=E5=8F=97=E5=AE=B9=E5=99=A8=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 所有筛选面板统一fixed定位,不依赖父容器overflow - 移动端: 上下留白居中,可滚动 - 桌面端: 右侧浮动,max-h-[80vh]可滚动,确认按钮始终可见 Co-Authored-By: Claude Opus 4.6 (1M context) --- src/App.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index de1bdf5..257bb5a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1045,7 +1045,7 @@ export default function App() { initial={{ opacity: 0, y: 10, scale: 0.95 }} animate={{ opacity: 1, y: 0, scale: 1 }} exit={{ opacity: 0, y: 10, scale: 0.95 }} - className="fixed inset-x-4 top-1/4 max-h-[60vh] overflow-auto sm:absolute sm:inset-auto sm:right-0 sm:bottom-full sm:mb-2 sm:w-72 sm:max-h-[70vh] bg-white rounded-xl shadow-2xl border border-slate-100 z-50 p-4" + className="fixed inset-x-4 top-24 bottom-24 overflow-auto sm:top-auto sm:bottom-auto sm:left-auto sm:right-4 sm:w-80 sm:max-h-[80vh] bg-white rounded-xl shadow-2xl border border-slate-100 z-50 p-4" >

库存统计 - 数据筛选

@@ -1976,7 +1976,7 @@ export default function App() { initial={{ opacity: 0, y: 10, scale: 0.95 }} animate={{ opacity: 1, y: 0, scale: 1 }} exit={{ opacity: 0, y: 10, scale: 0.95 }} - className="fixed inset-x-4 top-1/4 max-h-[60vh] overflow-auto sm:absolute sm:inset-auto sm:right-4 sm:bottom-full sm:mb-2 sm:w-72 sm:max-h-[70vh] bg-white rounded-xl shadow-2xl border border-gray-100 z-50 p-4 text-gray-800" + className="fixed inset-x-4 top-24 bottom-24 overflow-auto sm:top-auto sm:bottom-auto sm:left-auto sm:right-4 sm:w-80 sm:max-h-[80vh] bg-white rounded-xl shadow-2xl border border-gray-100 z-50 p-4 text-gray-800" >

区域筛选

@@ -2273,7 +2273,7 @@ export default function App() { initial={{ opacity: 0, y: 10, scale: 0.95 }} animate={{ opacity: 1, y: 0, scale: 1 }} exit={{ opacity: 0, y: 10, scale: 0.95 }} - className="fixed inset-x-4 top-1/4 max-h-[60vh] overflow-auto sm:absolute sm:inset-auto sm:right-4 sm:bottom-full sm:mb-2 sm:w-72 sm:max-h-[70vh] bg-white rounded-xl shadow-2xl border border-gray-100 z-50 p-4 text-gray-800" + className="fixed inset-x-4 top-24 bottom-24 overflow-auto sm:top-auto sm:bottom-auto sm:left-auto sm:right-4 sm:w-80 sm:max-h-[80vh] bg-white rounded-xl shadow-2xl border border-gray-100 z-50 p-4 text-gray-800" >

数据筛选