diff --git a/libs/remix-ui/workspace/src/lib/components/file-explorer-hovericons.tsx b/libs/remix-ui/workspace/src/lib/components/file-explorer-hovericons.tsx index 0c0ab996e7..6b110329b9 100644 --- a/libs/remix-ui/workspace/src/lib/components/file-explorer-hovericons.tsx +++ b/libs/remix-ui/workspace/src/lib/components/file-explorer-hovericons.tsx @@ -12,7 +12,7 @@ export type FileHoverIconsProps = { } export function FileHoverIcons(props: FileHoverIconsProps) { - + const [mouseOver, setMouseOver] = useState(false) return ( <> {
@@ -32,6 +32,9 @@ export function FileHoverIcons(props: FileHoverIconsProps) { e.stopPropagation() await props.handleNewFolderOp(props.file.path) }} + style={{ cursor: mouseOver ? 'pointer' : 'default' }} + onMouseEnter={(e) => setMouseOver(true)} + onMouseLeave={(e) => setMouseOver(false)} > setMouseOver(true)} + onMouseLeave={(e) => setMouseOver(false)} > @@ -65,6 +71,9 @@ export function FileHoverIcons(props: FileHoverIconsProps) { e.stopPropagation() await props.renamePathOp(props.file.path, props.file.type) }} + style={{ cursor: mouseOver ? 'pointer' : 'default' }} + onMouseEnter={(e) => setMouseOver(true)} + onMouseLeave={(e) => setMouseOver(false)} > setMouseOver(true)} + onMouseLeave={(e) => setMouseOver(false)} >