Skip to content

Commit

Permalink
fixing hover event
Browse files Browse the repository at this point in the history
  • Loading branch information
joeizang committed Feb 1, 2024
1 parent 4cce5be commit 4feb355
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function FileHoverIcons(props: FileHoverIconsProps) {

return (
<>
{(!props.hover && !props.isEditable) && <div className="d-flex flex-row align-items-center" style={{ marginLeft: '6rem' }}>
{(props.hover && !props.isEditable) && <div className="d-flex flex-row align-items-center" style={{ marginLeft: '6rem' }}>
{
props.file.isDirectory ? (
<>
Expand Down
6 changes: 5 additions & 1 deletion libs/remix-ui/workspace/src/lib/components/flat-tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,11 @@ export const FlatTree = (props: FlatTreeProps) => {
</div>
<div className="d-flex flex-row align-items-center">
<div>
<FileHoverIcons file={file} />
<FileHoverIcons
file={file}
isEditable={focusEdit && file.path && focusEdit.element === file.path}
hover={hover.length > 0}
/>
</div> {getFileStateIcons(file)}
</div>
</>
Expand Down

0 comments on commit 4feb355

Please sign in to comment.