diff --git a/packages/app/src/app/pages/Sandbox/Editor/Workspace/Files/DirectoryEntry/Entry/EditIcons/index.js b/packages/app/src/app/pages/Sandbox/Editor/Workspace/Files/DirectoryEntry/Entry/EditIcons/index.js
index 88639dc19c7..7e9cb4fd9ee 100644
--- a/packages/app/src/app/pages/Sandbox/Editor/Workspace/Files/DirectoryEntry/Entry/EditIcons/index.js
+++ b/packages/app/src/app/pages/Sandbox/Editor/Workspace/Files/DirectoryEntry/Entry/EditIcons/index.js
@@ -19,7 +19,6 @@ const handleClick = func => e => {
function EditIcons({
className,
- hovering,
onDelete,
onEdit,
onCreateFile,
@@ -35,46 +34,44 @@ function EditIcons({
}
return (
-
- {(hovering || (window.__isTouch && active) || forceShow) && (
-
- {onEdit && (
-
-
-
-
-
- )}
- {onUploadFile && (
-
-
-
-
-
- )}
- {onCreateFile && (
-
-
-
-
-
- )}
- {onCreateDirectory && (
-
-
-
-
-
- )}
- {onDelete && (
-
-
-
-
-
- )}
-
- )}
+
+
+ {onEdit && (
+
+
+
+
+
+ )}
+ {onUploadFile && (
+
+
+
+
+
+ )}
+ {onCreateFile && (
+
+
+
+
+
+ )}
+ {onCreateDirectory && (
+
+
+
+
+
+ )}
+ {onDelete && (
+
+
+
+
+
+ )}
+
);
}
diff --git a/packages/app/src/app/pages/Sandbox/Editor/Workspace/Files/DirectoryEntry/Entry/index.js b/packages/app/src/app/pages/Sandbox/Editor/Workspace/Files/DirectoryEntry/Entry/index.js
index 0072a76fb0e..8d75738f85b 100644
--- a/packages/app/src/app/pages/Sandbox/Editor/Workspace/Files/DirectoryEntry/Entry/index.js
+++ b/packages/app/src/app/pages/Sandbox/Editor/Workspace/Files/DirectoryEntry/Entry/index.js
@@ -25,7 +25,6 @@ class Entry extends React.PureComponent {
state: props.state || '',
error: false,
selected: false,
- hovering: false,
};
}
@@ -76,9 +75,6 @@ class Entry extends React.PureComponent {
setCurrentModule = () => this.props.setCurrentModule(this.props.id);
- onMouseEnter = () => this.setState({ hovering: true });
- onMouseLeave = () => this.setState({ hovering: false });
-
render() {
const {
title,
@@ -102,7 +98,7 @@ class Entry extends React.PureComponent {
root,
rightColors,
} = this.props;
- const { state, error, selected, hovering } = this.state;
+ const { state, error, selected } = this.state;
const items = [
[
@@ -151,8 +147,6 @@ class Entry extends React.PureComponent {
nameValidationError={error}
active={active}
editing={state === 'editing' || selected}
- onMouseEnter={this.onMouseEnter}
- onMouseLeave={this.onMouseLeave}
alternative={isMainModule}
rightColors={rightColors}
noTransition
@@ -179,10 +173,10 @@ class Entry extends React.PureComponent {
{state === '' && (
{isMainModule ? (
- main
+ main
) : (
{
export const EntryContainer = styled.span`
${props => getContainerStyles(props)};
+ .actionIcons,
+ .mainIndicator {
+ opacity: 0;
+ }
+
+ .actionIcons {
+ transition: opacity 0.2s;
+ }
+
+ &:hover .mainIndicator,
+ &:hover .actionIcons {
+ opacity: 1;
+ }
`;
export const Container = styled.div`