ui: portal-based dropdown (no clipping in scroll containers, viewport-aware flip/clamp, close on scroll)

This commit is contained in:
root
2026-10-17 10:18:42 +08:00
parent c39a4c80d5
commit 4a73fddd0c
15 changed files with 69 additions and 36 deletions
+1
View File
@@ -0,0 +1 @@
import{j as s,a}from"./index-BxEr63go.js";function i({className:r,...e}){return s.jsx("div",{className:a("rounded-lg border border-line bg-surface shadow-card",r),...e})}function t({title:r,extra:e,className:n}){return s.jsxs("div",{className:a("flex min-h-11 flex-wrap items-center justify-between gap-2 border-b border-line px-4 py-1.5",n),children:[s.jsx("h3",{className:"text-[13px] font-semibold text-ink-1",children:r}),e&&s.jsx("div",{className:"flex flex-wrap items-center gap-2",children:e})]})}function c({className:r,...e}){return s.jsx("div",{className:a("p-4",r),...e})}export{i as C,t as a,c as b};