From 9de85928583b0b3d71cc2a75c4f2612f251ffb80 Mon Sep 17 00:00:00 2001 From: zmagod Date: Thu, 28 Sep 2017 17:13:04 +0200 Subject: [PATCH] fixed edit image on hover action --- .../scenes/profile/components/AvatarInputField.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/javascript/src/scenes/SettingsPage/scenes/profile/components/AvatarInputField.jsx b/app/javascript/src/scenes/SettingsPage/scenes/profile/components/AvatarInputField.jsx index 762d16620..3fa0396df 100644 --- a/app/javascript/src/scenes/SettingsPage/scenes/profile/components/AvatarInputField.jsx +++ b/app/javascript/src/scenes/SettingsPage/scenes/profile/components/AvatarInputField.jsx @@ -15,9 +15,13 @@ const AvatarWrapper = styled.div` height: 100px; position: relative; cursor: pointer; + &:hover > span { + display: block; + } `; const EditAvatar = styled.span` + display: none; color: ${WHITE_COLOR}; background-color: ${DARK_GRAY_COLOR}; position: absolute;