Fixed post clicking issue

This commit is contained in:
Christopher
2026-01-22 15:05:33 -08:00
parent 7bc2b1c7e6
commit 1ed8e2c4db
2 changed files with 8 additions and 4 deletions
+7 -3
View File
@@ -1508,17 +1508,21 @@ a.btn-primary:visited {
.post-link-overlay {
position: absolute;
inset: 0;
z-index: 0;
z-index: 1;
}
.post-header,
.post-reply-to,
.post-media-grid,
.link-preview-card,
.post-actions,
.post-actions {
position: relative;
z-index: 2;
}
.post-content {
position: relative;
z-index: 1;
z-index: 0;
}
/* Post Detail Styles */
+1 -1
View File
@@ -120,7 +120,7 @@ export function PostCard({ post, onLike, onRepost, onComment, onDelete, isDetail
return (
<article className={`post ${isDetail ? 'detail' : ''}`}>
<Link href={postUrl} className="post-link-overlay" aria-label="View post" />
{!isDetail && <Link href={postUrl} className="post-link-overlay" aria-label="View post" />}
<div className="post-header">
<Link href={`/${post.author.handle}`} className="avatar-link" onClick={(e) => e.stopPropagation()}>