{title}
+ {#if category} +{description}
+ {/if} +diff --git a/src/lib/components/FindCard.svelte b/src/lib/components/FindCard.svelte index c72c2c0..b7957e6 100644 --- a/src/lib/components/FindCard.svelte +++ b/src/lib/components/FindCard.svelte @@ -3,6 +3,8 @@ import { Badge } from '$lib/components/badge'; import LikeButton from '$lib/components/LikeButton.svelte'; import VideoPlayer from '$lib/components/VideoPlayer.svelte'; + import { Avatar, AvatarFallback } from '$lib/components/avatar'; + import { MoreHorizontal, MessageCircle, Share } from '@lucide/svelte'; interface FindCardProps { id: string; @@ -40,14 +42,62 @@ onExplore?.(id); } - function truncateText(text: string, maxLength: number = 120): string { - if (text.length <= maxLength) return text; - return text.slice(0, maxLength).trim() + '...'; + function getUserInitials(username: string): string { + return username.slice(0, 2).toUpperCase(); }
{description}
+ {/if} +