Skip to content

Commit

Permalink
Fix upvote button shown for deleted items
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Dec 20, 2024
1 parent 6ad7a3c commit 6d9db69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/boost-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion components/upvote.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
}

.noSelfTips {
transform: scaleX(-1);
visibility: hidden;
}

.upvoteWrapper:not(.noSelfTips):hover {
Expand Down

0 comments on commit 6d9db69

Please sign in to comment.