From ab47fb6142226b28fe7f9e0987b2cf0d57163f31 Mon Sep 17 00:00:00 2001 From: dekun Date: Tue, 13 Oct 2026 14:42:00 +0800 Subject: [PATCH] =?UTF-8?q?fix=E6=9D=A1=E4=BB=B6=E5=8D=95=E5=88=92?= =?UTF-8?q?=E8=BD=AC=E6=8C=89=E9=92=AE=E7=AD=89=E5=AE=BD=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=A4=87=E7=94=A8=E6=89=93=E5=BC=80=E5=85=A5?= =?UTF-8?q?=E5=8F=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- static/cond_orders.js | 35 +---------------------------------- static/hub.css | 7 +++++-- templates/base.html | 2 +- templates/cond_orders.html | 4 ++-- 4 files changed, 9 insertions(+), 39 deletions(-) diff --git a/static/cond_orders.js b/static/cond_orders.js index bf97ac7..3799044 100644 --- a/static/cond_orders.js +++ b/static/cond_orders.js @@ -211,29 +211,6 @@ return n.toFixed(2) + "U"; } - function openInstanceTab(instanceId, tab) { - if (!instanceId) return; - const q = tab ? "?tab=" + encodeURIComponent(tab) : ""; - fetch("/api/instances/" + encodeURIComponent(instanceId) + "/open_url" + q) - .then(function (r) { - return r.json(); - }) - .then(function (d) { - const url = - d && d.url - ? d.url - : "/desk?id=" + encodeURIComponent(instanceId); - window.open(url, "_blank", "noopener,noreferrer"); - }) - .catch(function () { - window.open( - "/desk?id=" + encodeURIComponent(instanceId), - "_blank", - "noopener,noreferrer" - ); - }); - } - function patchCandidateFunds(instanceId, tradingUsdt, fundingUsdt) { const id = String(instanceId); const it = candidatesById[id]; @@ -389,7 +366,7 @@ escapeHtml(fmtTradingU(it.funding_usdt)) + "" + '' + - '" + - '' + "" + "" + "" + @@ -476,13 +450,6 @@ ); }); }); - box.querySelectorAll(".cond-inst-open").forEach(function (btn) { - btn.addEventListener("click", function (ev) { - ev.preventDefault(); - ev.stopPropagation(); - openInstanceTab(btn.getAttribute("data-inst-id") || "", "options"); - }); - }); } function renderDesktopRows(list) { diff --git a/static/hub.css b/static/hub.css index 13d6236..cb473b8 100644 --- a/static/hub.css +++ b/static/hub.css @@ -1587,10 +1587,13 @@ input.readonly { gap: 6px; margin-left: auto; } -.cond-inst-xfer, -.cond-inst-open { +.cond-inst-xfer { flex-shrink: 0; white-space: nowrap; + min-width: 5.5em; + box-sizing: border-box; + text-align: center; + justify-content: center; } .cond-inst.is-off { cursor: not-allowed; } .cond-actions { diff --git a/templates/base.html b/templates/base.html index 3fedc74..d7885ce 100644 --- a/templates/base.html +++ b/templates/base.html @@ -11,7 +11,7 @@ - + + {% endblock %}