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.title}

-

{entry.summary}

{entry.url}
+
)} diff --git a/packages/ui/src/styles/app.css b/packages/ui/src/styles/app.css index cd6d9c2..1a52b5e 100644 --- a/packages/ui/src/styles/app.css +++ b/packages/ui/src/styles/app.css @@ -657,6 +657,26 @@ textarea { margin: 0; } +.web-preview-article { + flex: 1; + min-width: 0; + margin: 0; + padding: 20px 24px 32px; + overflow: auto; + color: var(--color-text); + background: var(--color-surface); + text-align: left; +} + +.web-preview-article h1 { + font-size: 1.75em; + line-height: 1.2; +} + +.web-preview-article p { + margin: 0 0 1em; +} + .floating-panel { position: absolute; z-index: 20;