Fix upvote button shown for deleted items (#1753)
This commit is contained in:
parent
f5fb88342b
commit
0ca37038dd
|
@ -26,7 +26,7 @@ export default function Boost ({ item, className, ...props }) {
|
|||
item={item} As={oprops =>
|
||||
<div className='upvoteParent'>
|
||||
<div
|
||||
className={styles.upvoteWrapper}
|
||||
className={classNames(styles.upvoteWrapper, item.deletedAt && styles.noSelfTips)}
|
||||
>
|
||||
<BoostIcon
|
||||
{...props}
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
}
|
||||
|
||||
.noSelfTips {
|
||||
transform: scaleX(-1);
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.upvoteWrapper:not(.noSelfTips):hover {
|
||||
|
|
Loading…
Reference in New Issue