Fix mobile trade records hidden by CSS cascade overriding compact list.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-23 16:58:56 +08:00
parent c302c3e4ea
commit 21f86906da
6 changed files with 20 additions and 16 deletions
+7 -5
View File
@@ -30,11 +30,13 @@
}
var rows = table.querySelectorAll('tr[id^="trade-row-"]');
listEl.innerHTML = Array.prototype.map
.call(rows, function (tr) {
return UI.renderMobileTradeRow(tr);
})
.join("");
listEl.innerHTML = rows.length
? Array.prototype.map
.call(rows, function (tr) {
return UI.renderMobileTradeRow(tr);
})
.join("")
: '<div class="journal-empty-msg">暂无交易记录</div>';
listEl.querySelectorAll(".mobile-record-row").forEach(function (btn) {
btn.addEventListener("click", function () {