mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-09 08:24:25 +08:00
fixed edit image on hover action
This commit is contained in:
parent
f492234f89
commit
9de8592858
1 changed files with 4 additions and 0 deletions
|
@ -15,9 +15,13 @@ const AvatarWrapper = styled.div`
|
||||||
height: 100px;
|
height: 100px;
|
||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
&:hover > span {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const EditAvatar = styled.span`
|
const EditAvatar = styled.span`
|
||||||
|
display: none;
|
||||||
color: ${WHITE_COLOR};
|
color: ${WHITE_COLOR};
|
||||||
background-color: ${DARK_GRAY_COLOR};
|
background-color: ${DARK_GRAY_COLOR};
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
Loading…
Reference in a new issue