fix: 筛选面板改为fixed定位,桌面端右侧浮动不受容器限制
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

- 所有筛选面板统一fixed定位,不依赖父容器overflow
- 移动端: 上下留白居中,可滚动
- 桌面端: 右侧浮动,max-h-[80vh]可滚动,确认按钮始终可见

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
kkfluous
2026-03-28 23:58:32 +08:00
parent c20ac11ed7
commit 9f3b134007

View File

@@ -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"
>
<div className="flex justify-between items-center mb-4">
<h3 className="text-xs font-bold text-slate-800"> - </h3>
@@ -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"
>
<div className="flex items-center justify-between mb-4">
<h3 className="text-sm font-bold text-gray-900"></h3>
@@ -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"
>
<div className="flex items-center justify-between mb-4">
<h3 className="text-sm font-bold text-gray-900"></h3>