From 80592c8eb5848b38433549d702ac310f211e8ad4 Mon Sep 17 00:00:00 2001 From: Silberengel Date: Tue, 31 Mar 2026 14:56:29 +0200 Subject: [PATCH] bug-fixes --- .../RelayPulseActiveNpubsSheet.tsx | 16 +- .../Note/MarkdownArticle/MarkdownArticle.tsx | 615 ++++++++++++------ src/components/ProfileAbout/index.tsx | 214 +++++- src/components/WebPreview/index.tsx | 8 +- .../primary/NoteListPage/FollowingFeed.tsx | 43 +- src/pages/secondary/MuteListPage/index.tsx | 3 +- .../FavoriteRelaysActivityProvider.tsx | 20 +- 7 files changed, 653 insertions(+), 266 deletions(-) diff --git a/src/components/FavoriteRelaysActiveStrip/RelayPulseActiveNpubsSheet.tsx b/src/components/FavoriteRelaysActiveStrip/RelayPulseActiveNpubsSheet.tsx index 3e01f676..daafa775 100644 --- a/src/components/FavoriteRelaysActiveStrip/RelayPulseActiveNpubsSheet.tsx +++ b/src/components/FavoriteRelaysActiveStrip/RelayPulseActiveNpubsSheet.tsx @@ -1,4 +1,5 @@ import UserAvatar from '@/components/UserAvatar' +import ProfileAbout from '@/components/ProfileAbout' import { Button } from '@/components/ui/button' import { Sheet, @@ -11,8 +12,7 @@ import { getProfileFromEvent } from '@/lib/event-metadata' import { cn } from '@/lib/utils' import { toProfile } from '@/lib/link' import { - collectAggregatedNip05sFromKind0, - truncateAbout + collectAggregatedNip05sFromKind0 } from '@/lib/relay-pulse-nip05' import { useMuteList } from '@/contexts/mute-list-context' import { muteSetHas } from '@/lib/mute-set' @@ -23,12 +23,9 @@ import { Users } from 'lucide-react' import { useMemo } from 'react' import { useTranslation } from 'react-i18next' -const ABOUT_PREVIEW_LEN = 250 - function CompactProfileCard({ event }: { event: Event }) { const profile = getProfileFromEvent(event) const nip05s = collectAggregatedNip05sFromKind0(event) - const about = truncateAbout(profile.about, ABOUT_PREVIEW_LEN) const { setActiveNpubsDrawerOpen } = useFavoriteRelaysActivity() const profileUrl = toProfile(event.pubkey) const closeDrawer = () => setActiveNpubsDrawerOpen(false) @@ -45,11 +42,10 @@ function CompactProfileCard({ event }: { event: Event }) { > {profile.username} - {about ? ( -

- {about} -

- ) : null} + {nip05s.length > 0 ? (