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 =>
|
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}
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.noSelfTips {
|
.noSelfTips {
|
||||||
transform: scaleX(-1);
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.upvoteWrapper:not(.noSelfTips):hover {
|
.upvoteWrapper:not(.noSelfTips):hover {
|
||||||
|
|
Loading…
Reference in New Issue