From 10c0cb82002f74e8f38847de57f9079a914d01cc Mon Sep 17 00:00:00 2001 From: Silberengel Date: Wed, 12 Nov 2025 21:31:26 +0100 Subject: [PATCH] fixed video display on mobile --- src/components/Content/index.tsx | 13 +++++++------ .../Note/AsciidocArticle/AsciidocArticle.tsx | 4 ++-- .../Note/MarkdownArticle/MarkdownArticle.tsx | 4 ++-- src/components/VideoPlayer/index.tsx | 4 ++-- src/lib/nostr-parser.tsx | 2 +- 5 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/components/Content/index.tsx b/src/components/Content/index.tsx index 6727b1e..7e0e312 100644 --- a/src/components/Content/index.tsx +++ b/src/components/Content/index.tsx @@ -329,12 +329,13 @@ export default function Content({ {/* Render videos from tags that don't appear in content */} {videosFromTags.map((video) => ( - +
+ +
))} {/* Render audio from tags that don't appear in content */} diff --git a/src/components/Note/AsciidocArticle/AsciidocArticle.tsx b/src/components/Note/AsciidocArticle/AsciidocArticle.tsx index 7ea3e7a..b78b80b 100644 --- a/src/components/Note/AsciidocArticle/AsciidocArticle.tsx +++ b/src/components/Note/AsciidocArticle/AsciidocArticle.tsx @@ -1325,10 +1325,10 @@ export default function AsciidocArticle({ ) } else if (media.type === 'video' || media.type === 'audio') { return ( -
+
diff --git a/src/components/Note/MarkdownArticle/MarkdownArticle.tsx b/src/components/Note/MarkdownArticle/MarkdownArticle.tsx index fb437f0..2dd1025 100644 --- a/src/components/Note/MarkdownArticle/MarkdownArticle.tsx +++ b/src/components/Note/MarkdownArticle/MarkdownArticle.tsx @@ -3087,10 +3087,10 @@ export default function MarkdownArticle({ ) } else if (media.type === 'video' || media.type === 'audio') { return ( -
+
diff --git a/src/components/VideoPlayer/index.tsx b/src/components/VideoPlayer/index.tsx index 3196a1f..41f2414 100644 --- a/src/components/VideoPlayer/index.tsx +++ b/src/components/VideoPlayer/index.tsx @@ -57,12 +57,12 @@ export default function VideoPlayer({ src, className, poster }: { src: string; c setError(true) }} > -
+