fix(vulnerabilities): theme the related facts panel

This commit is contained in:
Sycun committed 2026-11-12 17:10:45 +08:00
1 parent a9a810f907
commit ed4b86cee2
3 files changed
+15 -7

No files matched your search

+11 -3
View File
@@ -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;
+2 -2
View File
@@ -1970,7 +1970,7 @@ async function loadVulnerabilityRelatedFacts(vulnId) {
const facts = await res.json();
if (!Array.isArray(facts) || !facts.length) {
el.innerHTML =
'<strong>关联事实</strong><p style="margin:6px 0 0;color:#64748b">暂无;可在「项目管理」事实详情中关联或生成漏洞草稿。</p>';
'<strong>关联事实</strong><p>暂无;可在「项目管理」事实详情中关联或生成漏洞草稿。</p>';
el.dataset.loaded = '1';
return;
}
@@ -1986,7 +1986,7 @@ async function loadVulnerabilityRelatedFacts(vulnId) {
el.innerHTML = `<strong>关联事实(${facts.length})</strong><ul>${items}</ul>`;
el.dataset.loaded = '1';
} catch (e) {
el.innerHTML = '<strong>关联事实</strong><p style="margin:6px 0 0;color:#b91c1c">加载失败</p>';
el.innerHTML = '<strong>关联事实</strong><p class="vulnerability-related-facts-error">加载失败</p>';
}
}
+2 -2
View File
@@ -39,7 +39,7 @@
}
})();
</script>
<link rel="stylesheet" href="/static/css/style.css?v=20261103-personal-integration">
<link rel="stylesheet" href="/static/css/style.css?v=20261112-related-facts-theme">
<link rel="stylesheet" href="/static/css/vulnerability-download.css?v=20261030-2">
<link rel="stylesheet" href="/static/css/tool-guard.css?v=20260907-7">
<link rel="stylesheet" href="/static/css/chat-plan-progress.css?v=20260813-4">
@@ -7089,7 +7089,7 @@
<script src="/static/js/skills.js?v=20261103-personal-integration"></script>
<script src="/static/js/fact-graph.js"></script>
<script src="/static/js/projects.js?v=20260819-1-pagination-20261027"></script>
<script src="/static/js/vulnerability.js?v=20261030-format-download"></script>
<script src="/static/js/vulnerability.js?v=20261112-related-facts-theme"></script>
<script src="/static/js/vulnerability-download.js?v=20261030-2"></script>
<script src="/static/js/webshell.js?v=20261011-token-usage-tool-title"></script>
<script src="/static/js/chat-files.js?v=20261103-personal-integration"></script>