From d08688dda3a87ae7e447772edfb8d4909336da13 Mon Sep 17 00:00:00 2001 From: SZCJW <792430652@qq.com> Date: Sun, 8 Mar 2026 01:21:36 +0800 Subject: [PATCH] x --- static/style.css | 68 ++++++++++++++++------------------------------- static/vue-app.js | 15 ++++++----- 2 files changed, 31 insertions(+), 52 deletions(-) diff --git a/static/style.css b/static/style.css index 3783d25..14cbbef 100644 --- a/static/style.css +++ b/static/style.css @@ -580,61 +580,39 @@ body { .btn-sm { padding: var(--space-1) var(--space-3); - font-size: var(--text-xs); - border-radius: var(--radius-sm); + font-size: var(--text-xs); + border-radius: var(--radius-sm); } -/* ================================ - 进度条 - ================================ */ -.file-row { - cursor: pointer; - transition: background-color var(--duration-fast) var(--ease-default); +.history-dropdown { + position: absolute; + top: 100%; + left: 0; + z-index: 1000; + background: var(--bg-primary); + border-radius: var(--radius-md); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); + max-height: 400px; + overflow-y: auto; } -.file-row:hover { - background-color: var(--bg-secondary); +.history-dropdown table { + width: 100%; + font-size: var(--text-xs); } -.expand-icon { - display: inline-block; - width: 20px; - color: var(--text-tertiary); - font-size: var(--text-xs); - transition: transform var(--duration-fast) var(--ease-default); +.history-dropdown th { + background: var(--bg-tertiary); + padding: var(--space-2) var(--space-3); + white-space: nowrap; } -.history-detail-row { - background-color: var(--bg-secondary); +.history-dropdown td { + padding: var(--space-2) var(--space-3); } -.history-detail-row td { - padding: 0; -} - -.history-detail { - padding: var(--space-4) var(--space-6); -} - -.inner-table { - background: var(--bg-primary); - border-radius: var(--radius-md); - overflow: hidden; - border: 1px solid var(--border-light); -} - -.inner-table th { - background: var(--bg-tertiary); - font-size: var(--text-xs); -} - -.inner-table td { - font-size: var(--text-xs); -} - -.action-buttons { - display: flex; - gap: var(--space-2); +.history-dropdown tr:hover { + background: var(--bg-secondary); } /* ================================ diff --git a/static/vue-app.js b/static/vue-app.js index 7756645..9819b42 100644 --- a/static/vue-app.js +++ b/static/vue-app.js @@ -899,6 +899,7 @@ const MoldInsightView = { uploadFile, formatFileSize, formatDateTime, + formatNumber, toggleFileHistory, viewResult }; @@ -969,11 +970,8 @@ const MoldInsightView = {