From 320e7f000a064ca8525f593bda44954b30c94e00 Mon Sep 17 00:00:00 2001 From: Gigi Date: Sun, 5 Oct 2025 13:34:38 +0100 Subject: [PATCH] fix: prevent 'No readable content' flash for markdown articles - Check for markdown/html existence before checking finalHtml - Show empty container while markdown is being converted to HTML - Fixes issue where nostr blog posts briefly showed error message --- src/components/ContentPanel.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/ContentPanel.tsx b/src/components/ContentPanel.tsx index b6cf9256..db6d86e9 100644 --- a/src/components/ContentPanel.tsx +++ b/src/components/ContentPanel.tsx @@ -183,12 +183,16 @@ const ContentPanel: React.FC = ({ )} - {finalHtml ? ( -
+ {markdown || html ? ( + finalHtml ? ( +
+ ) : ( +
+ ) ) : (

No readable content found for this URL.