fix: Anchor the reorder drop cursor to the membership row

Passed as a child it rendered outside the row's positioned wrapper, so
every cursor collapsed to the bottom of the section and never appeared
between rows. cursorAfter places it inside the row's Relative, as
DocumentLink does.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Tom MoorandClaude Fable 5 committed 2026-09-06 21:07:04 +09:00
1 parent 448ba0fae1
commit 6b02f3fbbc
1 file changed
+8 -6
@@ -264,6 +264,14 @@ function DocumentMembershipLink({ membership, depth = 0 }: Props) {
parentRef={parentRef}
dropToReparentRef={dropToReparent}
isActiveDropTarget={isOverReparent}
cursorAfter={
reorderProps.isDragging ? (
<DropCursor
isActiveDrop={reorderProps.isOverCursor}
innerRef={dropToReorderRef}
/>
) : undefined
}
menu={menu}
menuOpen={menuOpen}
canCreateChild={can.createChildDocument}
@@ -291,12 +299,6 @@ function DocumentMembershipLink({ membership, depth = 0 }: Props) {
</Folder>
</SidebarExpansionContext.Provider>
</SidebarDisclosureContext.Provider>
{reorderProps.isDragging && (
<DropCursor
isActiveDrop={reorderProps.isOverCursor}
innerRef={dropToReorderRef}
/>
)}
</DocumentRow>
);
}