From a4eaebf8b77b68094012de1479974474b54e9a4c Mon Sep 17 00:00:00 2001 From: tuzi <1753710808@qq.com> Date: Mon, 15 Jun 2026 16:09:36 +0800 Subject: [PATCH] html --- packages/ui/src/App.tsx | 15 +++++++++------ packages/ui/src/styles/app.css | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/packages/ui/src/App.tsx b/packages/ui/src/App.tsx index 268f045..7f3e1ef 100644 --- a/packages/ui/src/App.tsx +++ b/packages/ui/src/App.tsx @@ -1004,6 +1004,7 @@ function ReaderDetail(props: { } const articleHtml = translationMode === "translation" && entry.translationHtml ? entry.translationHtml : entry.readerHtml; + const webHtml = entry.webPreview.trim().startsWith("<") ? entry.webPreview : articleHtml; function toggleTranslation() { if (!entry) { @@ -1134,14 +1135,16 @@ function ReaderDetail(props: { - {entry.webPreview} - -
{entry.summary}
{entry.url}