From ed4b86cee21c531a72c393a4aa2bb563d1467886 Mon Sep 17 00:00:00 2001 From: Sycun <165354365+Sycun@users.noreply.github.com> Date: Thu, 12 Nov 2026 17:10:45 +0800 Subject: [PATCH] fix(vulnerabilities): theme the related facts panel --- web/static/css/style.css | 14 +++++++++++--- web/static/js/vulnerability.js | 4 ++-- web/templates/index.html | 4 ++-- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/web/static/css/style.css b/web/static/css/style.css index c4f5e323..bc536bee 100644 --- a/web/static/css/style.css +++ b/web/static/css/style.css @@ -35466,9 +35466,10 @@ body.app-modal-open { .vulnerability-related-facts { margin-top: 12px; padding: 10px 12px; - background: #f8fafc; - border: 1px solid #e2e8f0; + background: var(--bg-primary); + border: 1px solid var(--border-color); border-radius: 8px; + color: var(--text-primary); font-size: 0.8125rem; } .vulnerability-related-facts ul { @@ -35479,10 +35480,17 @@ body.app-modal-open { margin: 4px 0; } .vulnerability-related-facts a { - color: #2563eb; + color: var(--accent-color); cursor: pointer; text-decoration: underline; } +.vulnerability-related-facts p { + margin-top: 6px; + color: var(--text-secondary); +} +.vulnerability-related-facts .vulnerability-related-facts-error { + color: var(--error-color); +} .fact-detail-body { max-height: 50vh; overflow: auto; diff --git a/web/static/js/vulnerability.js b/web/static/js/vulnerability.js index 92270fbe..63ae5e9b 100644 --- a/web/static/js/vulnerability.js +++ b/web/static/js/vulnerability.js @@ -1970,7 +1970,7 @@ async function loadVulnerabilityRelatedFacts(vulnId) { const facts = await res.json(); if (!Array.isArray(facts) || !facts.length) { el.innerHTML = - '关联事实

暂无;可在「项目管理」事实详情中关联或生成漏洞草稿。

'; + '关联事实

暂无;可在「项目管理」事实详情中关联或生成漏洞草稿。

'; el.dataset.loaded = '1'; return; } @@ -1986,7 +1986,7 @@ async function loadVulnerabilityRelatedFacts(vulnId) { el.innerHTML = `关联事实(${facts.length})`; el.dataset.loaded = '1'; } catch (e) { - el.innerHTML = '关联事实

加载失败

'; + el.innerHTML = '关联事实'; } } diff --git a/web/templates/index.html b/web/templates/index.html index fde6b61b..e101fe33 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -39,7 +39,7 @@ } })(); - + @@ -7089,7 +7089,7 @@ - +