fix: 筛选面板桌面端改为向上展开,加滚动防止底部遮挡
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

- 桌面端sm:top-full改为sm:bottom-full,面板从按钮上方弹出
- 加max-h和overflow-auto,内容过多时可滚动
- 移动端保持固定居中

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

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 sm:absolute sm:inset-auto sm:right-0 sm:top-full sm:mt-2 sm:w-72 bg-white rounded-xl shadow-2xl border border-slate-100 z-50 p-4"
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"
>
<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 sm:absolute sm:inset-auto sm:top-full sm:right-4 sm:mt-2 sm:w-72 bg-white rounded-xl shadow-2xl border border-gray-100 z-50 p-4 text-gray-800"
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"
>
<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 sm:absolute sm:inset-auto sm:top-full sm:right-4 sm:mt-2 sm:w-72 bg-white rounded-xl shadow-2xl border border-gray-100 z-50 p-4 text-gray-800"
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"
>
<div className="flex items-center justify-between mb-4">
<h3 className="text-sm font-bold text-gray-900"></h3>