mirror of
https://github.com/outline/outline.git
synced 2026-11-28 00:09:58 +03:00
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:
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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user