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 () {
+5 -3
View File
@@ -104,7 +104,7 @@
}
.mobile-record-list {
display: flex;
display: flex !important;
flex-direction: column;
gap: 6px;
}
@@ -210,8 +210,10 @@
}
}
.mobile-record-list {
display: none;
@media (min-width: 721px) {
.mobile-record-list {
display: none !important;
}
}
/* 手机竖屏(含大屏手机) */