-
{LABELS[s.k]}
-
- move(i, i - 1)} disabled={i === 0} className="rounded px-1 text-muted-foreground hover:bg-muted disabled:opacity-30" title="上移">↑
- move(i, i + 1)} disabled={i === segments.length - 1} className="rounded px-1 text-muted-foreground hover:bg-muted disabled:opacity-30" title="下移">↓
- remove(i)} className="rounded p-0.5 text-muted-foreground hover:text-destructive" title="删除">
-
+ {/* Drag is scoped to the grip handle only — making the whole row
+ draggable hijacked text selection inside the segment inputs (you
+ couldn't select part of a pasted URL without dragging the card).
+ The row stays the drop target; its body is fully selectable. */}
+
+
+ { e.stopPropagation(); setDragFrom(i); }}
+ onDragEnd={() => setDragFrom(null)}
+ title="拖动此处排序" aria-label="拖动排序"
+ className="flex shrink-0 cursor-grab rounded-md p-0.5 text-muted-foreground/50 transition-colors hover:bg-muted hover:text-foreground active:cursor-grabbing"
+ >
+
+
+ {LABELS[s.k]}
+
+
+ move(i, i - 1)} disabled={i === 0} className="rounded px-1 text-muted-foreground hover:bg-muted disabled:opacity-30" title="上移">↑
+ move(i, i + 1)} disabled={i === segments.length - 1} className="rounded px-1 text-muted-foreground hover:bg-muted disabled:opacity-30" title="下移">↓
+ remove(i)} className="rounded p-0.5 text-muted-foreground hover:text-destructive" title="删除">
-
patch(i, n)} uin={uin} groupId={groupId} depth={depth} />
+
patch(i, n)} uin={uin} groupId={groupId} depth={depth} />