From 5157561e83fe32ad716ac0ae1ec55956dae35d67 Mon Sep 17 00:00:00 2001 From: coder Date: Fri, 17 Apr 2026 10:05:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20PDF=E5=AF=B9=E6=AF=94=E7=94=A8PDF.js?= =?UTF-8?q?=E6=B8=B2=E6=9F=93+=E6=BB=9A=E5=8A=A8=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/style.css | 30 ++++++++++++ templates/translation.html | 98 +++++++++++++++++++++++++++++++++++--- 2 files changed, 121 insertions(+), 7 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 99917cc..7a0a115 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -75,12 +75,21 @@ body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; + height: 70vh; } .compare-panel { padding: 15px; border-radius: 5px; background-color: #f8f9fa; + overflow-y: auto; + height: 100%; +} + +.compare-panel h5 { + margin-bottom: 10px; + padding-bottom: 5px; + border-bottom: 1px solid #ddd; } .compare-panel.original { @@ -91,6 +100,27 @@ body { border-left: 4px solid var(--success-color); } +.compare-panel iframe { + width: 100%; + height: calc(100% - 40px); + border: none; +} + +#pdfContainer { + height: calc(100% - 40px); + overflow-y: auto; +} + +#pdfPages { + padding: 10px; +} + +.pdf-page-canvas { + border: 1px solid #ddd; + border-radius: 3px; + background: white; +} + /* 会员卡片 */ .pricing-card { transition: transform 0.3s ease; diff --git a/templates/translation.html b/templates/translation.html index 89dbd73..25a1b85 100644 --- a/templates/translation.html +++ b/templates/translation.html @@ -7,6 +7,7 @@ +