Fix hedge-plan option list to 5-row scroll viewport and add auto-deploy rule.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-14 12:43:23 +08:00
parent 27f4f5e2ee
commit 036501b70c
6 changed files with 44 additions and 77 deletions
+8 -13
View File
@@ -57,16 +57,6 @@
<button type="button" class="btn-secondary" id="hp-load-chain">刷新链</button>
</div>
<div id="hp-index-line" class="muted hp-quote-line"></div>
<div class="form-row hp-pick-row">
<label class="hp-strike-pick-label">合约
<select id="hp-strike-select" title="从列表外合约中快速选用">
<option value="">更多行权价…</option>
</select>
</label>
<label>已选 <code id="hp-sel-inst"></code></label>
<label>张数 <input type="number" step="1" min="1" id="hp-sheets" value="1" /></label>
<span class="muted" id="hp-premium-line"></span>
</div>
<div class="options-strike-table-wrap hp-strike-table-wrap--5">
<table class="options-strike-table" id="hp-strike-table">
<thead>
@@ -83,10 +73,15 @@
</tbody>
</table>
</div>
<div class="form-row hp-pick-row">
<label>已选 <code id="hp-sel-inst"></code></label>
<label>张数 <input type="number" step="1" min="1" id="hp-sheets" value="1" /></label>
<span class="muted" id="hp-premium-line"></span>
</div>
<div id="hp-opt-bal-line" class="muted hp-quote-line hp-opt-bal-line"></div>
</div>
</div>
<div class="card" style="margin-top:12px" id="hp-preview-card-po">
<div class="card hp-preview-card" id="hp-preview-card-po">
<div style="display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between">
<h2 style="margin:0">情景测算</h2>
<div class="form-row" style="margin:0">
@@ -155,7 +150,7 @@
</div>
</div>
</div>
<div class="card" style="margin-top:12px">
<div class="card hp-preview-card">
<div style="display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between">
<h2 style="margin:0">情景测算</h2>
<button type="button" class="primary" id="hp-preview-btn-oo">计算</button>
@@ -197,4 +192,4 @@
</div>
</div>
</div>
<script src="/static/hedge_plan.js?v=5"></script>
<script src="/static/hedge_plan.js?v=6"></script>