Skip to content

Commit 10a16d2

Browse files
author
ben
committed
- darkening when enableImageSelection: false
1 parent 98a00ec commit 10a16d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Image.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ class Image extends Component {
106106
position: "absolute",
107107
height: "100%",
108108
width: "100%",
109-
background: (this.state.hover && !this.props.isSelected) ?
109+
background: (this.state.hover
110+
&& !this.props.isSelected
111+
&& this.props.enableImageSelection) ?
110112
'linear-gradient(to bottom,rgba(0,0,0,0.26),transparent 56px,transparent)' : 'none'}}>
111113
</div>
112114

0 commit comments

Comments
 (0)