From 822ef65f2d6f797d2cd2ec82a71c11f0f72b6978 Mon Sep 17 00:00:00 2001 From: dekun Date: Sun, 4 Oct 2026 09:57:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=BB=E8=A7=88=E6=97=A0=E6=8C=81=E4=BB=93?= =?UTF-8?q?=E6=97=B6=E4=BB=8D=E6=98=BE=E7=A4=BA=E7=81=B0=E8=89=B2=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E5=B9=B3=E4=BB=93=E6=8C=89=E9=92=AE=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E6=93=8D=E4=BD=9C=E5=88=97=E5=8F=AA=E5=89=A9=E6=89=93?= =?UTF-8?q?=E5=BC=80=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- static/hub.css | 10 ++++++++++ static/hub.js | 12 ++++++++++-- templates/dashboard.html | 2 +- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/static/hub.css b/static/hub.css index 9f8d2db..bfbc59d 100644 --- a/static/hub.css +++ b/static/hub.css @@ -302,6 +302,16 @@ button, .btn { } .btn:hover, button:hover { filter: brightness(1.06); } .btn-danger { background: #9f1239; color: #fff; } +.btn-close-disabled, +.btn-close-disabled:hover, +.btn.btn-close-disabled:disabled { + background: #3a3f4b; + color: #8b93a7; + border: 1px solid #4a5160; + cursor: not-allowed; + filter: none; + opacity: 1; +} .btn-sm { padding: 3px 8px; font-size: 0.75rem; diff --git a/static/hub.js b/static/hub.js index f8230ab..55bcde9 100644 --- a/static/hub.js +++ b/static/hub.js @@ -85,11 +85,19 @@ } function closeActionButtons(brief, instanceId, online) { - if (!online) return ""; const list = (brief || []).filter(function (p) { return !!(p && p.inst_id); }); - if (!list.length) return ""; + if (!online) { + return ( + '' + ); + } + if (!list.length) { + return ( + '' + ); + } return list .slice(0, 8) .map(function (p) { diff --git a/templates/dashboard.html b/templates/dashboard.html index f89e187..f1e1c2c 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -15,6 +15,6 @@
{% endblock %} {% block scripts %} - + {% endblock %}