Add files via upload

This commit is contained in:
公明
2026-07-01 16:06:15 +08:00
committed by GitHub
parent 5b7f157802
commit 2f58d0a457
3 changed files with 32 additions and 9 deletions
+23 -6
View File
@@ -25060,7 +25060,7 @@ button.chat-files-dropdown-item:hover:not(:disabled) {
align-items: flex-start;
justify-content: space-between;
gap: 20px;
padding: 20px 24px 18px;
padding: 16px 24px 14px;
border-bottom: 1px solid #eef2f7;
background: #fff;
}
@@ -25119,10 +25119,28 @@ button.chat-files-dropdown-item:hover:not(:disabled) {
border-color: #e2e8f0;
}
.projects-detail-meta {
display: inline-flex;
align-items: center;
gap: 5px;
flex-shrink: 0;
margin: 0;
font-size: 0.8125rem;
color: #94a3b8;
line-height: 1.4;
padding: 5px 10px;
font-size: 0.75rem;
color: #64748b;
line-height: 1.2;
white-space: nowrap;
border-radius: 999px;
background: #f8fafc;
border: 1px solid #e8edf3;
font-variant-numeric: tabular-nums;
}
.projects-detail-meta-icon {
flex-shrink: 0;
opacity: 0.65;
}
.projects-detail-meta-time {
font-weight: 500;
color: #64748b;
}
.projects-detail-desc {
margin: 0;
@@ -25188,8 +25206,7 @@ button.chat-files-dropdown-item:hover:not(:disabled) {
flex-wrap: wrap;
gap: 8px;
align-items: center;
align-self: flex-start;
margin-top: 2px;
align-self: center;
}
@media (max-width: 860px) {
.projects-detail-header {
+5 -2
View File
@@ -722,9 +722,12 @@ function updateProjectStatusPill(status) {
function renderProjectDetailMeta(updatedAt) {
const metaEl = document.getElementById('projects-detail-meta');
if (!metaEl) return;
const timeEl = document.getElementById('projects-detail-meta-time');
if (!metaEl || !timeEl) return;
const time = formatProjectTime(updatedAt);
metaEl.textContent = tpFmt('projects.updatedPrefix', `Updated ${time}`, { time });
const full = tpFmt('projects.updatedPrefix', `Updated ${time}`, { time });
timeEl.textContent = time;
metaEl.title = full;
}
function refreshProjectDetailMetaI18n() {
+4 -1
View File
@@ -1713,10 +1713,13 @@
<span class="projects-stat-chip projects-stat-chip--warn" id="project-stat-sparse" hidden>0 待补全</span>
</div>
</div>
<p id="projects-detail-meta" class="projects-detail-meta"></p>
<p id="projects-detail-desc" class="projects-detail-desc" hidden></p>
</div>
<div class="projects-detail-header-actions">
<span id="projects-detail-meta" class="projects-detail-meta" aria-live="polite">
<svg class="projects-detail-meta-icon" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
<span id="projects-detail-meta-time" class="projects-detail-meta-time"></span>
</span>
<button type="button" class="btn-secondary btn-small" onclick="openVulnerabilitiesForProject()" data-i18n="projects.vulnerabilityManagement">漏洞管理</button>
<button type="button" class="btn-primary btn-small" onclick="showAddFactModal()" data-i18n="projects.addFactCta">+ 添加事实</button>
</div>