Auto-size hub order popup iframe so trade form shows without scrollbars.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-25 23:22:49 +08:00
parent 1767566951
commit 95d5469d12
7 changed files with 105 additions and 33 deletions
+5 -3
View File
@@ -21,9 +21,10 @@
data-price-refresh-ms="{{ price_refresh_seconds * 1000 }}"
>
{% if order_popup %}
<link rel="stylesheet" href="/static/embed_order_popup.css?v=1">
<link rel="stylesheet" href="/static/embed_order_popup.css?v=2">
{% endif %}
<div class="container{% if order_popup %} embed-order-popup-shell{% endif %}">
{% if not order_popup %}
<div class="header{% if order_popup %} embed-order-popup-head{% endif %}">
<h1>{% if order_popup %}{{ exchange_display }} · 实盘下单{% else %}加密货币|交易监控 + AI复盘一体化{% endif %}</h1>
<div class="header-row">
@@ -43,6 +44,7 @@
</div>
</div>
</div>
{% endif %}
{% if not order_popup %}
<nav class="top-nav embed-top-nav" aria-label="实例导航">
<a href="/key_monitor" data-embed-tab="key_monitor" class="{% if initial_tab == 'key_monitor' %}active{% endif %}">关键位监控</a>
@@ -90,7 +92,7 @@
<div class="stat-item"><div class="label">交易日</div><div class="value">{{ trading_day }}</div></div>
<div class="stat-item"><div class="label">当日资金(交易账户)</div><div class="value" id="current-capital">{{ funds_fmt(current_capital) }}U</div></div>
</div>
{% if include_transfer_block %}
{% if include_transfer_block and not order_popup %}
{% include 'gate_transfer_block.html' %}
{% endif %}
@@ -124,6 +126,6 @@
<script src="/static/manual_order_rr_preview.js?v=4"></script>
<script src="/static/key_monitor_form.js?v=1"></script>
{% include 'embed_boot_scripts.html' %}
<script src="/static/instance_embed.js?v=5"></script>
<script src="/static/instance_embed.js?v=6"></script>
</body>
</html>