From 3b819a4b7211884caabd7cef86236a36e7a62f9b Mon Sep 17 00:00:00 2001 From: Silberengel Date: Thu, 9 Apr 2026 21:50:52 +0200 Subject: [PATCH] bug-fixes --- .../MediaPlayer/LazyMediaTapPlaceholder.tsx | 9 ++- src/components/MediaPlayer/index.tsx | 2 +- src/components/Profile/index.tsx | 26 ++++----- src/components/UserAvatar/index.tsx | 2 + src/components/Username/index.tsx | 2 + src/components/VideoPlayer/index.tsx | 7 ++- .../YoutubeEmbeddedPlayer/index.tsx | 7 ++- .../ZapStreamEmbeddedPlayer/index.tsx | 2 +- src/hooks/useFetchProfile.tsx | 16 +++++ src/lib/nostr-parser.tsx | 20 ++++--- src/lib/profile-navigation-seed.ts | 25 ++++++++ .../secondary/ProfileEditorPage/index.tsx | 58 +++++++++---------- 12 files changed, 117 insertions(+), 59 deletions(-) create mode 100644 src/lib/profile-navigation-seed.ts diff --git a/src/components/MediaPlayer/LazyMediaTapPlaceholder.tsx b/src/components/MediaPlayer/LazyMediaTapPlaceholder.tsx index 69f61cc4..b351f2cd 100644 --- a/src/components/MediaPlayer/LazyMediaTapPlaceholder.tsx +++ b/src/components/MediaPlayer/LazyMediaTapPlaceholder.tsx @@ -58,7 +58,9 @@ function BlurHashLayer({ blurHash, className }: { blurHash: string; className?: const frameClass = (kind: 'video' | 'audio', className?: string) => cn( - 'relative w-full max-w-[400px] shrink-0 self-start overflow-hidden rounded-lg border border-border bg-muted/30 shadow-sm', + // `not-prose`: poster lives inside MarkdownArticle `.prose`; typography adds img margins + // that break `absolute inset-0` layout and show a blurhash band above the still. + 'not-prose relative w-full max-w-[400px] shrink-0 self-start overflow-hidden rounded-lg border border-border bg-muted/30 shadow-sm', kind === 'video' ? 'aspect-video' : 'min-h-[7.5rem] aspect-[21/9]', className ) @@ -89,7 +91,7 @@ function MediaPlaceholderLayers({ @@ -187,7 +189,8 @@ export default function LazyMediaTapPlaceholder({ className={cn( // `block` + `p-0` + `leading-none`: native