feature: enable file renaming
Users can now rename a file by double-clicking on it.
This commit is contained in:
parent
08fccdd506
commit
41dbd4a1da
@ -90,9 +90,9 @@ export default function SidebarFile({
|
||||
if (!editing && !pendingDelete && !isMoving)
|
||||
selectFile({ ...data, saved: true });
|
||||
}}
|
||||
// onDoubleClick={() => {
|
||||
// setEditing(true)
|
||||
// }}
|
||||
onDoubleClick={() => {
|
||||
setEditing(true)
|
||||
}}
|
||||
className={`${
|
||||
dragging ? "opacity-50 hover:!bg-background" : ""
|
||||
} data-[state=open]:bg-secondary/50 w-full flex items-center h-7 px-1 hover:bg-secondary rounded-sm cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`}
|
||||
|
Loading…
x
Reference in New Issue
Block a user