fix条件单列表悬停高亮,进行中与已结束改为每页5条。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-13 14:45:40 +08:00
parent ab47fb6142
commit 3130a12825
4 changed files with 34 additions and 7 deletions
+3 -1
View File
@@ -359,12 +359,14 @@
"</span>" +
"</label>" +
'<div class="cond-inst-body">' +
'<span class="cond-inst-fund-line">' +
'<span class="cond-inst-funds cond-inst-funds--trading" title="交易账户可用">交易 ' +
escapeHtml(fmtTradingU(it.trading_usdt)) +
"</span>" +
'<span class="cond-inst-funds cond-inst-funds--funding muted" title="资金账户可用">资金 ' +
escapeHtml(fmtTradingU(it.funding_usdt)) +
"</span>" +
"</span>" +
'<span class="cond-inst-actions">' +
'<button type="button" class="btn btn-secondary btn-sm cond-inst-xfer" data-inst-id="' +
escapeHtml(id) +
@@ -495,7 +497,7 @@
.join("");
}
var PAGE_SIZE = 10;
var PAGE_SIZE = 5;
var listPages = { active: 1, done: 1 };
var lastActive = [];
var lastDone = [];
+29 -4
View File
@@ -1542,6 +1542,15 @@ input.readonly {
border-radius: 10px;
border: 1px solid var(--line);
background: rgba(8, 16, 30, 0.72);
transition: border-color 0.15s ease, background 0.15s ease;
}
.cond-inst-row:not(.is-off) .cond-inst:hover {
border-color: rgba(56, 189, 248, 0.45);
background: rgba(56, 189, 248, 0.1);
}
.cond-inst-row:not(.is-off) .cond-inst:has(input:checked) {
border-color: rgba(56, 189, 248, 0.55);
background: rgba(56, 189, 248, 0.12);
}
.cond-inst input { width: auto; margin: 0; flex-shrink: 0; }
.cond-inst-head {
@@ -1563,12 +1572,18 @@ input.readonly {
.cond-inst-tag { color: var(--muted); font-size: 0.75rem; flex-shrink: 0; }
.cond-inst-body {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px 10px;
flex-direction: column;
align-items: flex-start;
gap: 8px;
padding-left: 24px;
min-width: 0;
}
.cond-inst-fund-line {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px 12px;
}
.cond-inst-funds {
color: var(--accent-2, #38bdf8);
font-size: 0.78rem;
@@ -1585,7 +1600,6 @@ input.readonly {
align-items: center;
flex-wrap: wrap;
gap: 6px;
margin-left: auto;
}
.cond-inst-xfer {
flex-shrink: 0;
@@ -1616,6 +1630,12 @@ input.readonly {
.cond-st.st-open { color: var(--ok); background: rgba(52, 211, 153, 0.12); }
.cond-st.st-done { color: var(--muted); background: rgba(138, 160, 184, 0.12); }
.cond-table-wrap { margin-top: 0; }
.cond-table-wrap .overview-table tbody tr {
transition: background 0.12s ease;
}
.cond-table-wrap .overview-table tbody tr:hover td {
background: rgba(56, 189, 248, 0.08);
}
.cond-td-time {
white-space: nowrap;
font-variant-numeric: tabular-nums;
@@ -2187,6 +2207,11 @@ html.hub-phone-html body.page-cond-orders .cond-actions .btn {
border-radius: 12px;
border: 1px solid rgba(56, 189, 248, 0.18);
background: rgba(8, 16, 30, 0.72);
transition: border-color 0.15s ease, background 0.15s ease;
}
.hub-phone-cond:hover {
border-color: rgba(56, 189, 248, 0.45);
background: rgba(56, 189, 248, 0.1);
}
.hub-phone-cond-head {
display: flex;