fix(message): re-added click to usericon

This commit is contained in:
trashtemp
2022-01-15 22:50:29 +01:00
parent d0ae08e421
commit e57a996102
4 changed files with 45 additions and 3 deletions

View File

@@ -133,6 +133,7 @@ const Message = observer(
<MessageInfo click={typeof head !== "undefined"}>
{head ? (
<UserIcon
className="avatar"
url={message.generateMasqAvatarURL()}
target={user}
size={36}

View File

@@ -142,6 +142,14 @@ export const MessageInfo = styled.div<{ click: boolean }>`
flex-direction: row;
justify-content: center;
.avatar {
user-select: none;
cursor: pointer;
&:active {
transform: translateY(1px);
}
}
.copyBracket {
opacity: 0;
position: absolute;
@@ -184,11 +192,11 @@ export const MessageInfo = styled.div<{ click: boolean }>`
color: var(--tertiary-foreground);
}
${(props) =>
/*${(props) =>
props.click &&
css`
cursor: pointer;
`}
`}*/
`;
export const MessageContent = styled.div`