mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-15 04:30:55 +08:00
fix: 发现状态下拉点不动(item-aligned 快速点击即闭合)
行内状态 Select 用组件默认 position="item-aligned",会把当前选中项铺在触发器上, 在 h-7 小触发器上按下即打开、抬起时正好落在当前项 → 瞬间又选中同值并关闭,表现为点不动。 改用 position="popper" align="end",下拉浮在触发器下方,不覆盖触发器。
This commit is contained in:
@@ -336,7 +336,7 @@ export default function FindingsPage() {
|
||||
dot
|
||||
/>
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectContent position="popper" align="end">
|
||||
{FINDING_STATUSES.map((st) => (
|
||||
<SelectItem key={st} value={st}>
|
||||
{statusMeta("finding", st).label}
|
||||
|
||||
@@ -84,7 +84,7 @@ function Row({
|
||||
>
|
||||
<StatusBadge domain="finding" value={f.status} dot />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectContent position="popper" align="end">
|
||||
{FINDING_STATUSES.map((st) => (
|
||||
<SelectItem key={st} value={st}>
|
||||
{statusMeta("finding", st).label}
|
||||
|
||||
Reference in New Issue
Block a user