From 89ea04c86d8ae68495908913566e6155adb9f1d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E4=B8=80=E4=B8=81?= <1769123563@qq.com> Date: Sat, 22 Nov 2025 18:37:59 +0800 Subject: [PATCH] Revert "Fix the Issue of HTML Data Blocks Overlapping with Other Content" This reverts commit 79f080fa5c37c74a3ab51088a0bef647e7851e7b. --- ReportEngine/renderers/html_renderer.py | 55 +++++-------------------- 1 file changed, 10 insertions(+), 45 deletions(-) diff --git a/ReportEngine/renderers/html_renderer.py b/ReportEngine/renderers/html_renderer.py index 61d9965..47225c6 100644 --- a/ReportEngine/renderers/html_renderer.py +++ b/ReportEngine/renderers/html_renderer.py @@ -2154,60 +2154,26 @@ body {{ color: var(--secondary-color); font-size: 0.95rem; }} -.hero-section, -.hero-section-combined {{ - padding: 28px; - border-radius: 20px; - background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(23,162,184,0.08)); - border: 1px solid rgba(0,0,0,0.08); - margin-bottom: 32px; - box-shadow: 0 8px 20px var(--shadow-color); -}} .hero-section {{ display: flex; flex-wrap: wrap; gap: 24px; -}} -.hero-section-combined .hero-header {{ - margin-bottom: 14px; -}} -.hero-section-combined .hero-hint {{ - letter-spacing: 0.28em; - text-transform: uppercase; - color: var(--secondary-color); - font-size: 0.9rem; - margin: 0; -}} -.hero-section-combined .hero-title {{ - margin: 8px 0 4px; - font-size: 2.2rem; - line-height: 1.2; -}} -.hero-section-combined .hero-subtitle {{ - margin: 0; - color: var(--secondary-color); - font-weight: 600; -}} -.hero-body {{ - display: flex; - flex-wrap: wrap; - gap: 20px; - align-items: flex-start; + padding: 24px; + border-radius: 20px; + background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(23,162,184,0.1)); + border: 1px solid rgba(0,0,0,0.08); + margin-bottom: 32px; }} .hero-content {{ flex: 2; - min-width: 300px; - display: flex; - flex-direction: column; - gap: 12px; + min-width: 260px; }} .hero-side {{ flex: 1; - min-width: 240px; + min-width: 220px; display: grid; - grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); + grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; - margin-top: 8px; }} .hero-kpi {{ background: var(--card-bg); @@ -2226,7 +2192,7 @@ body {{ .hero-highlights {{ list-style: none; padding: 0; - margin: 8px 0 0; + margin: 16px 0; display: flex; flex-wrap: wrap; gap: 10px; @@ -2250,7 +2216,6 @@ body {{ display: flex; flex-wrap: wrap; gap: 12px; - margin-top: 4px; }} .ghost-btn {{ border: 1px solid var(--primary-color); @@ -2263,7 +2228,7 @@ body {{ .hero-summary {{ font-size: 1.05rem; font-weight: 500; - margin: 0; + margin-top: 0; }} .llm-error-block {{ border: 1px dashed var(--secondary-color);