Use compact single-row trade records on tablet with detail modal.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-29 23:59:02 +08:00
parent 9dbf6b1f1e
commit 21d68f6269
3 changed files with 88 additions and 8 deletions
+4 -4
View File
@@ -69,9 +69,9 @@
</div>
<div class="records-mobile-item-foot">
<span class="records-mobile-pnl {{ 'is-profit' if t.pnl_net and t.pnl_net > 0 else ('is-loss' if t.pnl_net and t.pnl_net < 0 else 'is-flat') }}">
净盈亏 {{ t.pnl_net if t.pnl_net is not none else '-' }}
<span class="records-mobile-pnl-lbl">净盈亏 </span>{{ t.pnl_net if t.pnl_net is not none else '-' }}
</span>
<span class="records-mobile-chevron">查看详情 </span>
<span class="records-mobile-chevron">详情 </span>
</div>
</button>
{% else %}
@@ -326,9 +326,9 @@
</div>
<div class="records-mobile-item-foot">
<span class="records-mobile-pnl {{ 'is-profit' if r.pnl_net and r.pnl_net > 0 else ('is-loss' if r.pnl_net and r.pnl_net < 0 else 'is-flat') }}">
净盈亏 {{ r.pnl_net if r.pnl_net is not none else '-' }}
<span class="records-mobile-pnl-lbl">净盈亏 </span>{{ r.pnl_net if r.pnl_net is not none else '-' }}
</span>
<span class="records-mobile-chevron">查看详情 </span>
<span class="records-mobile-chevron">详情 </span>
</div>
</button>
{% else %}