diff --git a/static/cond_orders.js b/static/cond_orders.js index b3787d7..59cba3a 100644 --- a/static/cond_orders.js +++ b/static/cond_orders.js @@ -379,7 +379,7 @@ '' + escapeHtml(it.name || "") + "" + - '' + + '' + '交易 ' + escapeHtml(fmtTradingU(it.trading_usdt)) + "" + @@ -494,22 +494,12 @@ ); }); }); - box.querySelectorAll("[data-xfer-toggle]").forEach(function (el) { - el.addEventListener("click", function (ev) { - ev.preventDefault(); - ev.stopPropagation(); - const card = el.closest(".cond-inst"); - if (!card || card.classList.contains("is-off")) return; - card.classList.toggle("is-xfer-open"); - }); - }); box.querySelectorAll(".cond-inst-name").forEach(function (el) { el.addEventListener("click", function (ev) { const card = el.closest(".cond-inst"); if (!card || card.classList.contains("is-off")) return; const cb = card.querySelector('input[name="cf-inst"]'); if (!cb || cb.disabled) return; - // 点名称切换勾选(避免点余额误勾) if (ev.target === el) { cb.checked = !cb.checked; } diff --git a/static/hub.css b/static/hub.css index 025575b..9a3ce6c 100644 --- a/static/hub.css +++ b/static/hub.css @@ -1496,6 +1496,13 @@ input.readonly { color: #b6c7da; margin-bottom: 6px; } +.cond-uly-side-row { + display: flex; + flex-wrap: wrap; + gap: 12px 16px; + align-items: end; +} +.cond-uly-side-item { min-width: 0; } .cond-native-select[hidden] { display: none !important; } .cond-seg { display: inline-flex; @@ -1621,7 +1628,7 @@ input.readonly { margin: 2px 0 0; flex-shrink: 0; grid-column: 1; - grid-row: 1; + grid-row: 1 / span 2; align-self: start; } .cond-inst-main { @@ -1655,9 +1662,7 @@ input.readonly { flex-wrap: wrap; gap: 6px 12px; margin-top: 3px; - cursor: pointer; } -.cond-inst.is-off .cond-inst-fund-line { cursor: default; } .cond-inst-funds { color: var(--accent-2, #38bdf8); font-size: 0.76rem; @@ -1670,7 +1675,7 @@ input.readonly { font-weight: 500; } .cond-inst-actions { - display: none; + display: flex; align-items: center; flex-wrap: wrap; gap: 6px; @@ -1678,7 +1683,6 @@ input.readonly { grid-row: 2; padding-top: 2px; } -.cond-inst.is-xfer-open .cond-inst-actions { display: flex; } .cond-inst-xfer { flex-shrink: 0; white-space: nowrap; diff --git a/templates/base.html b/templates/base.html index 5ad024c..b5c7be4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -11,7 +11,7 @@ - + + {% endblock %}