fix: Flashing hand cursor in notifications popover

This commit is contained in:
Tom Moor
2024-01-31 21:03:21 -05:00
parent 8e3cec01f8
commit 8c65e40c7e

View File

@@ -40,7 +40,7 @@ function NotificationListItem({ notification, onNavigate }: Props) {
};
return (
<Link to={notification.path ?? ""} onClick={handleClick}>
<StyledLink to={notification.path ?? ""} onClick={handleClick}>
<Container gap={8} $unread={!notification.viewedAt}>
<StyledAvatar model={notification.actor} size={AvatarSize.Large} />
<Flex column>
@@ -67,10 +67,16 @@ function NotificationListItem({ notification, onNavigate }: Props) {
</Flex>
{notification.viewedAt ? null : <Unread />}
</Container>
</Link>
</StyledLink>
);
}
const StyledLink = styled(Link)`
display: block;
margin: 0 8px;
cursor: var(--pointer);
`;
const StyledCommentEditor = styled(CommentEditor)`
font-size: 0.9em;
margin-top: 4px;
@@ -86,13 +92,11 @@ const Container = styled(Flex)<{ $unread: boolean }>`
position: relative;
padding: 8px 12px;
padding-right: 40px;
margin: 0 8px;
border-radius: 4px;
&:${hover},
&:active {
background: ${s("listItemHoverBackground")};
cursor: var(--pointer);
}
`;