From 2f58d0a4579dd230379f0b77dcfa0a71d410bf9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AC=E6=98=8E?= <83812544+Ed1s0nZ@users.noreply.github.com> Date: Wed, 1 Jul 2026 16:06:15 +0800 Subject: [PATCH] Add files via upload --- web/static/css/style.css | 29 +++++++++++++++++++++++------ web/static/js/projects.js | 7 +++++-- web/templates/index.html | 5 ++++- 3 files changed, 32 insertions(+), 9 deletions(-) diff --git a/web/static/css/style.css b/web/static/css/style.css index 19f2adc2..78e6980c 100644 --- a/web/static/css/style.css +++ b/web/static/css/style.css @@ -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 { diff --git a/web/static/js/projects.js b/web/static/js/projects.js index 013336ad..8ed522ce 100644 --- a/web/static/js/projects.js +++ b/web/static/js/projects.js @@ -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() { diff --git a/web/templates/index.html b/web/templates/index.html index a7566db1..6820bdd6 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -1713,10 +1713,13 @@ 0 待补全 -