mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 08:30:58 -05:00
fix(messaging): bring cursor pointer back for av.
This commit is contained in:
parent
271a126a3f
commit
8eb2f4e7e3
3 changed files with 9 additions and 3 deletions
|
@ -130,7 +130,7 @@ const Message = observer(
|
|||
}
|
||||
onMouseEnter={() => setAnimate(true)}
|
||||
onMouseLeave={() => setAnimate(false)}>
|
||||
<MessageInfo>
|
||||
<MessageInfo click={typeof head !== "undefined"}>
|
||||
{head ? (
|
||||
<UserIcon
|
||||
url={message.generateMasqAvatarURL()}
|
||||
|
|
|
@ -134,7 +134,7 @@ export default styled.div<BaseMessageProps>`
|
|||
}
|
||||
`;
|
||||
|
||||
export const MessageInfo = styled.div`
|
||||
export const MessageInfo = styled.div<{ click: boolean }>`
|
||||
width: 62px;
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
|
@ -183,6 +183,12 @@ export const MessageInfo = styled.div`
|
|||
margin-right: 0.5em;
|
||||
color: var(--tertiary-foreground);
|
||||
}
|
||||
|
||||
${(props) =>
|
||||
props.click &&
|
||||
css`
|
||||
cursor: pointer;
|
||||
`}
|
||||
`;
|
||||
|
||||
export const MessageContent = styled.div`
|
||||
|
|
|
@ -147,7 +147,7 @@ export const SystemMessage = observer(
|
|||
: undefined
|
||||
}>
|
||||
{!hideInfo && (
|
||||
<MessageInfo>
|
||||
<MessageInfo click={false}>
|
||||
<MessageDetail message={message} position="left" />
|
||||
<SystemMessageIcon className="systemIcon" />
|
||||
</MessageInfo>
|
||||
|
|
Loading…
Reference in a new issue