fix(post menu): 'hide post' button wasn't appearing in thread page on desktop

This commit is contained in:
Tom (plebeius.eth)
2024-08-13 21:41:04 +02:00
parent 77980ee0c6
commit f7bab7c83e
@@ -184,7 +184,7 @@ const PostMenuDesktop = ({ post }: { post: Comment }) => {
<FloatingFocusManager context={context} modal={false}>
<div className={styles.postMenu} ref={refs.setFloating} style={floatingStyles} aria-labelledby={headingId} {...getFloatingProps()}>
{cid && subplebbitAddress && <CopyLinkButton cid={cid} subplebbitAddress={subplebbitAddress} onClose={handleClose} />}
{!isInPostPageView && !isDescription && !isRules && (
{!(isInPostPageView && postCid === cid) && !isDescription && !isRules && (
<div
className={styles.postMenuItem}
onClick={() => {