Fixed post clicking issue
This commit is contained in:
+7
-3
@@ -1508,17 +1508,21 @@ a.btn-primary:visited {
|
|||||||
.post-link-overlay {
|
.post-link-overlay {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
z-index: 0;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-header,
|
.post-header,
|
||||||
.post-reply-to,
|
.post-reply-to,
|
||||||
.post-media-grid,
|
.post-media-grid,
|
||||||
.link-preview-card,
|
.link-preview-card,
|
||||||
.post-actions,
|
.post-actions {
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
.post-content {
|
.post-content {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Post Detail Styles */
|
/* Post Detail Styles */
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ export function PostCard({ post, onLike, onRepost, onComment, onDelete, isDetail
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<article className={`post ${isDetail ? 'detail' : ''}`}>
|
<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">
|
<div className="post-header">
|
||||||
<Link href={`/${post.author.handle}`} className="avatar-link" onClick={(e) => e.stopPropagation()}>
|
<Link href={`/${post.author.handle}`} className="avatar-link" onClick={(e) => e.stopPropagation()}>
|
||||||
|
|||||||
Reference in New Issue
Block a user