Upgrade Vite deps and fix windows DnD

This commit is contained in:
Gregory Schier
2024-02-17 14:57:12 -08:00
parent 2679f5ebdf
commit 63f762a891
4 changed files with 671 additions and 1598 deletions

View File

@@ -480,6 +480,7 @@ function SidebarItems({
<Fragment key={child.item.id}>
{hoveredIndex === i && hoveredTree?.item.id === tree.item.id && <DropMarker />}
<DraggableSidebarItem
draggable
selected={selectedId === child.item.id}
itemId={child.item.id}
itemName={child.item.name}
@@ -563,6 +564,7 @@ const SidebarItem = forwardRef(function SidebarItem(
onSelect,
isCollapsed,
child,
draggable,
}: SidebarItemProps,
ref: ForwardedRef<HTMLLIElement>,
) {
@@ -644,7 +646,7 @@ const SidebarItem = forwardRef(function SidebarItem(
}, []);
return (
<li ref={ref}>
<li ref={ref} draggable={draggable}>
<div className={classNames(className, 'block relative group/item px-2 pb-0.5')}>
<ContextMenu
show={showContextMenu}
@@ -864,7 +866,6 @@ function DraggableSidebarItem({
return (
<SidebarItem
ref={ref}
draggable
className={classNames(isDragging && 'opacity-20')}
itemName={itemName}
itemId={itemId}