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 d609718500..444b56f40b 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
@@ -4,7 +4,6 @@ import { FormattedMessage } from 'react-intl'
import { ROOT_PATH } from '../utils/constants'
export type FileHoverIconsProps = {
- hover?: boolean
isEditable?: boolean
file: any
handleNewFolderOp?: any
@@ -17,7 +16,7 @@ export function FileHoverIcons(props: FileHoverIconsProps) {
return (
<>
- {(props.hover && !props.isEditable) &&
+ {
{
props.file.isDirectory ? (
<>
diff --git a/libs/remix-ui/workspace/src/lib/components/flat-tree.tsx b/libs/remix-ui/workspace/src/lib/components/flat-tree.tsx
index b5bcc61f4a..332357eb73 100644
--- a/libs/remix-ui/workspace/src/lib/components/flat-tree.tsx
+++ b/libs/remix-ui/workspace/src/lib/components/flat-tree.tsx
@@ -184,50 +184,60 @@ export const FlatTree = (props: FlatTreeProps) => {
}
}, [focusEdit])
+ const [onMouseEnter, setOnMouseEnter] = useState(false)
const Row = (index: number) => {
const node = Object.keys(flatTree)[index]
const file = flatTree[node]
- return (
setHover(file.path)}
- onMouseOut={() => setHover(file.path)}
- data-type={file.isDirectory ? 'folder' : 'file'}
- data-path={`${file.path}`}
- data-id={`treeViewLitreeViewItem${file.path}`}
- >
-
- {getIndentLevelDiv(file.path)}
+ return (
+
{
+ console.log(e)
+ setHover(file.path)
+ }}
+ onMouseOut={() => {
+ setHover(file.path)
+ }}
+ data-type={file.isDirectory ? 'folder' : 'file'}
+ data-path={`${file.path}`}
+ data-id={`treeViewLitreeViewItem${file.path}`}
+ onMouseEnter={() => setOnMouseEnter(true)}
+ onMouseLeave={() => setOnMouseEnter(false)}
+ >
+
+ {getIndentLevelDiv(file.path)}
-
- {focusEdit && file.path && focusEdit.element === file.path ?
-
:
- <>
- {file.name}
+
+ {focusEdit && file.path && focusEdit.element === file.path ?
+
:
+ <>
+ {file.name}
-
-
-
- 0}
- />
-
{getFileStateIcons(file)}
-
- >
- }
-
- )
+
+
+ {!onMouseEnter && (
+
+
+
)}
+ {getFileStateIcons(file)}
+
+ >
+ }
+
+ )
}
return (<>