Tackled remaining perf wins

This commit is contained in:
Gregory Schier
2025-01-02 06:51:54 -08:00
parent 42cd4a5f0f
commit 5ebf7dc499
6 changed files with 103 additions and 65 deletions

View File

@@ -226,11 +226,13 @@ export const SidebarItem = memo(function SidebarItem({
return (
<li ref={ref} draggable>
<div className={classNames(className, 'block relative group/item px-1.5 pb-0.5')}>
<SidebarItemContextMenu
child={child}
show={showContextMenu}
close={handleCloseContextMenu}
/>
{showContextMenu && (
<SidebarItemContextMenu
child={child}
show={showContextMenu}
close={handleCloseContextMenu}
/>
)}
<button
// tabIndex={-1} // Will prevent drag-n-drop
disabled={editing}