diff --git a/src/app/circle/[id]/page.tsx b/src/app/circle/[id]/page.tsx index ea934d0..bd99201 100644 --- a/src/app/circle/[id]/page.tsx +++ b/src/app/circle/[id]/page.tsx @@ -29,6 +29,7 @@ function PostCard({ onDeleted: (id: string) => void; onReact: (postId: string, emoji: string) => void; }) { + const [collapsed, setCollapsed] = useState(true); const [showComments, setShowComments] = useState(false); const [comments, setComments] = useState([]); const [commentText, setCommentText] = useState(""); @@ -112,15 +113,31 @@ function PostCard({ )}
- {/* Author row */} + {/* Author row โ€” tap to collapse/expand */}
-
-
๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง
-
+
+ {/* Collapsed preview */} + {collapsed && ( +
+ {post.imageUrl && ( + + )} + {post.body && ( + {post.body} + )} + โ–ผ +
+ )} + {!collapsed && โ–ฒ} + {/* โ‹ฏ menu โ€” rendered outside overflow:hidden so it doesn't get clipped */}
@@ -153,6 +170,12 @@ function PostCard({
+ {/* Collapsed divider */} + {collapsed &&
} + + {/* Expanded content */} + {!collapsed && <> + {/* Delete confirmation */} {deleteConfirm && (
@@ -257,6 +280,7 @@ function PostCard({
)} + } {/* end !collapsed */}
);