diff --git a/src/renderer/components/team/editor/EditorFileTree.tsx b/src/renderer/components/team/editor/EditorFileTree.tsx index 6beae5d1..ef31bb4c 100644 --- a/src/renderer/components/team/editor/EditorFileTree.tsx +++ b/src/renderer/components/team/editor/EditorFileTree.tsx @@ -344,7 +344,11 @@ export const EditorFileTree = ({ onDragCancel={handleDragCancel} autoScroll={{ threshold: { x: 0, y: 0.15 } }} > - +
); })}
+ {/* Spacer at bottom — drop here to move to project root */} + {draggedItem && ( +
+ )} {draggedItem && } @@ -398,8 +405,8 @@ export const EditorFileTree = ({ const RootDropZone = React.forwardRef< HTMLDivElement, - { projectPath: string | null; children: React.ReactNode } ->(({ projectPath, children }, ref) => { + { projectPath: string | null; isDropTarget: boolean; children: React.ReactNode } +>(({ projectPath, isDropTarget, children }, ref) => { const { setNodeRef } = useDroppable({ id: 'root-drop-zone', data: { isRoot: true, path: projectPath }, @@ -417,7 +424,13 @@ const RootDropZone = React.forwardRef< ); return ( -
+
{children}
);