mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-01-29 01:28:29 +00:00
fix message avatar hover & cursor
This commit is contained in:
parent
6b415fb6ba
commit
220a8f3044
|
@ -118,8 +118,8 @@ export const CompactHeader = style([
|
|||
|
||||
export const AvatarBase = style({
|
||||
paddingTop: toRem(4),
|
||||
cursor: 'pointer',
|
||||
transition: 'transform 200ms cubic-bezier(0, 0.8, 0.67, 0.97)',
|
||||
alignSelf: 'start',
|
||||
|
||||
selectors: {
|
||||
'&:hover': {
|
||||
|
|
|
@ -654,7 +654,13 @@ export const Message = as<'div', MessageProps>(
|
|||
|
||||
const avatarJSX = !collapse && messageLayout !== 1 && (
|
||||
<AvatarBase>
|
||||
<Avatar as="button" size="300" data-user-id={senderId} onClick={onUserClick}>
|
||||
<Avatar
|
||||
className={css.MessageAvatar}
|
||||
as="button"
|
||||
size="300"
|
||||
data-user-id={senderId}
|
||||
onClick={onUserClick}
|
||||
>
|
||||
{senderAvatarMxc ? (
|
||||
<AvatarImage
|
||||
src={mx.mxcUrlToHttp(senderAvatarMxc, 48, 48, 'crop') ?? senderAvatarMxc}
|
||||
|
|
|
@ -56,6 +56,10 @@ export const MessageOptionsBar = style([
|
|||
},
|
||||
]);
|
||||
|
||||
export const MessageAvatar = style({
|
||||
cursor: 'pointer',
|
||||
});
|
||||
|
||||
export const MessageQuickReaction = style({
|
||||
minWidth: toRem(32),
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue