Fix upvote button shown for deleted items (#1753)

This commit is contained in:
ekzyis 2024-12-21 01:16:24 +01:00 committed by GitHub
parent f5fb88342b
commit 0ca37038dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ export default function Boost ({ item, className, ...props }) {
item={item} As={oprops => item={item} As={oprops =>
<div className='upvoteParent'> <div className='upvoteParent'>
<div <div
className={styles.upvoteWrapper} className={classNames(styles.upvoteWrapper, item.deletedAt && styles.noSelfTips)}
> >
<BoostIcon <BoostIcon
{...props} {...props}

View File

@ -37,7 +37,7 @@
} }
.noSelfTips { .noSelfTips {
transform: scaleX(-1); visibility: hidden;
} }
.upvoteWrapper:not(.noSelfTips):hover { .upvoteWrapper:not(.noSelfTips):hover {