diff --git a/src/components/profile/ProfileTabs.tsx b/src/components/profile/ProfileTabs.tsx index 5212a90..2175302 100644 --- a/src/components/profile/ProfileTabs.tsx +++ b/src/components/profile/ProfileTabs.tsx @@ -5,7 +5,7 @@ import { Layers2 } from "lucide-react"; import { useQuery } from "@tanstack/react-query"; import { useTRPC } from "@/trpc/client"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; -import { Sheet, SheetContent } from "@/components/ui/sheet"; +import { Dialog, DialogContent } from "@/components/ui/dialog"; import { MilestoneCard } from "@/components/feed/MilestoneCard"; import { PostCard } from "@/components/feed/PostCard"; import { getMediaUrl } from "@/lib/media-url"; @@ -117,9 +117,12 @@ export function ProfileTabs({ petId }: ProfileTabsProps) { - {/* Post detail sheet — opens full PostCard when a grid thumbnail is tapped */} - { if (!open) setSelectedPost(null); }}> - + {/* Post detail dialog — centered overlay, no X button (3-dots in PostCard header handles options) */} + { if (!open) setSelectedPost(null); }}> + {selectedPost && ( setSelectedPost(null)} /> )} - - + + ); }