diff --git a/crypto_monitor_binance/templates/index.html b/crypto_monitor_binance/templates/index.html index 0c9a505..f7e114d 100644 --- a/crypto_monitor_binance/templates/index.html +++ b/crypto_monitor_binance/templates/index.html @@ -237,7 +237,7 @@ .stats-period-block h3{font-size:1rem;color:#dbe4ff;margin-bottom:4px} .stats-period-block .sub{font-size:.78rem;color:#8892b0;margin-bottom:10px;line-height:1.4} - + @@ -823,7 +823,7 @@ - + diff --git a/crypto_monitor_gate/templates/index.html b/crypto_monitor_gate/templates/index.html index 7e23ceb..3cedc36 100644 --- a/crypto_monitor_gate/templates/index.html +++ b/crypto_monitor_gate/templates/index.html @@ -237,7 +237,7 @@ .stats-period-block h3{font-size:1rem;color:#dbe4ff;margin-bottom:4px} .stats-period-block .sub{font-size:.78rem;color:#8892b0;margin-bottom:10px;line-height:1.4} - + @@ -790,7 +790,7 @@ - + diff --git a/crypto_monitor_gate_bot/templates/index.html b/crypto_monitor_gate_bot/templates/index.html index 7e23ceb..3cedc36 100644 --- a/crypto_monitor_gate_bot/templates/index.html +++ b/crypto_monitor_gate_bot/templates/index.html @@ -237,7 +237,7 @@ .stats-period-block h3{font-size:1rem;color:#dbe4ff;margin-bottom:4px} .stats-period-block .sub{font-size:.78rem;color:#8892b0;margin-bottom:10px;line-height:1.4} - + @@ -790,7 +790,7 @@ - + diff --git a/crypto_monitor_okx/templates/index.html b/crypto_monitor_okx/templates/index.html index 9de18c0..a681611 100644 --- a/crypto_monitor_okx/templates/index.html +++ b/crypto_monitor_okx/templates/index.html @@ -237,7 +237,7 @@ .stats-period-block h3{font-size:1rem;color:#dbe4ff;margin-bottom:4px} .stats-period-block .sub{font-size:.78rem;color:#8892b0;margin-bottom:10px;line-height:1.4} - + @@ -819,7 +819,7 @@ - + diff --git a/static/instance_records_mobile.js b/static/instance_records_mobile.js index e7f35c2..12e8cb9 100644 --- a/static/instance_records_mobile.js +++ b/static/instance_records_mobile.js @@ -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("") + : '
暂无交易记录
'; listEl.querySelectorAll(".mobile-record-row").forEach(function (btn) { btn.addEventListener("click", function () { diff --git a/static/instance_theme.css b/static/instance_theme.css index 446fe17..bef47f9 100644 --- a/static/instance_theme.css +++ b/static/instance_theme.css @@ -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; + } } /* 手机竖屏(含大屏手机) */