Move 期期 USDC transfer into T-quote card to free left panel.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -217,6 +217,7 @@
|
||||
el.textContent = text || "";
|
||||
el.classList.toggle("is-err", kind === "err");
|
||||
el.classList.toggle("is-ok", kind === "ok");
|
||||
el.classList.toggle("muted", !kind);
|
||||
}
|
||||
|
||||
function ooXferDir() {
|
||||
|
||||
@@ -3281,13 +3281,17 @@ html[data-theme="light"] .opt-be-dist-down {
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-oo-transfer--compact {
|
||||
margin: 12px 0 8px;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-oo-transfer-bals {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: baseline;
|
||||
gap: 6px 8px;
|
||||
margin-bottom: 8px;
|
||||
font-size: 0.78rem;
|
||||
margin-bottom: 6px;
|
||||
font-size: 0.76rem;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-oo-transfer-bals strong {
|
||||
color: var(--text, #e6edf3);
|
||||
@@ -3311,15 +3315,15 @@ html[data-theme="light"] .opt-be-dist-down {
|
||||
width: 96px;
|
||||
max-width: 30vw;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-oo-transfer-msg {
|
||||
margin: 6px 0 0;
|
||||
.hedge-plan-page-wrap #hp-oo-xfer-msg {
|
||||
margin-left: auto;
|
||||
font-size: 0.72rem;
|
||||
min-height: 1.1em;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-oo-transfer-msg.is-err {
|
||||
.hedge-plan-page-wrap #hp-oo-xfer-msg.is-err {
|
||||
color: #ff8a8a;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-oo-transfer-msg.is-ok {
|
||||
.hedge-plan-page-wrap #hp-oo-xfer-msg.is-ok {
|
||||
color: #3dd68c;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-oo-controls {
|
||||
|
||||
@@ -137,24 +137,6 @@
|
||||
<label>下破目标 <input type="number" step="any" id="hp-target-down" placeholder="向下突破" /></label>
|
||||
<span id="hp-oo-index" class="hp-oo-index" aria-live="polite">指数 —</span>
|
||||
</div>
|
||||
<div class="hp-oo-transfer" id="hp-oo-transfer">
|
||||
<div class="hp-oo-transfer-bals muted">
|
||||
<span>资金 <strong id="hp-oo-funding-usdc">—</strong></span>
|
||||
<span class="hp-oo-transfer-sep">·</span>
|
||||
<span>交易 <strong id="hp-oo-trading-usdc">—</strong></span>
|
||||
<span class="hp-oo-transfer-unit">USDC</span>
|
||||
</div>
|
||||
<div class="form-row hp-oo-transfer-form">
|
||||
<select id="hp-oo-xfer-dir" aria-label="划转方向">
|
||||
<option value="funding_to_trading" selected>资金 → 交易</option>
|
||||
<option value="trading_to_funding">交易 → 资金</option>
|
||||
</select>
|
||||
<input type="number" id="hp-oo-xfer-amount" min="0.01" step="0.01" placeholder="数量" />
|
||||
<button type="button" class="btn-secondary btn-sm" id="hp-oo-xfer-all">全部</button>
|
||||
<button type="button" class="btn-primary btn-sm" id="hp-oo-xfer-btn">划转</button>
|
||||
</div>
|
||||
<p class="muted hp-oo-transfer-msg" id="hp-oo-xfer-msg"></p>
|
||||
</div>
|
||||
<div class="hp-oo-controls">
|
||||
<div class="hp-oo-ctrl">
|
||||
<span class="hp-oo-ctrl-lab">张数</span>
|
||||
@@ -213,6 +195,24 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="hp-oo-transfer hp-oo-transfer--compact" id="hp-oo-transfer">
|
||||
<div class="hp-oo-transfer-bals muted">
|
||||
<span>资金 <strong id="hp-oo-funding-usdc">—</strong></span>
|
||||
<span class="hp-oo-transfer-sep">·</span>
|
||||
<span>交易 <strong id="hp-oo-trading-usdc">—</strong></span>
|
||||
<span class="hp-oo-transfer-unit">USDC</span>
|
||||
<span class="muted" id="hp-oo-xfer-msg"></span>
|
||||
</div>
|
||||
<div class="form-row hp-oo-transfer-form">
|
||||
<select id="hp-oo-xfer-dir" aria-label="划转方向">
|
||||
<option value="funding_to_trading" selected>资金 → 交易</option>
|
||||
<option value="trading_to_funding">交易 → 资金</option>
|
||||
</select>
|
||||
<input type="number" id="hp-oo-xfer-amount" min="0.01" step="0.01" placeholder="数量" />
|
||||
<button type="button" class="btn-secondary btn-sm" id="hp-oo-xfer-all">全部</button>
|
||||
<button type="button" class="btn-primary btn-sm" id="hp-oo-xfer-btn">划转</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row hp-action-row">
|
||||
<button type="button" class="primary" id="hp-preview-btn-oo">计算</button>
|
||||
<button type="button" class="btn-secondary" id="hp-start-btn-oo" title="需开启 HEDGE_PLAN_LIVE_ORDER">启动计划</button>
|
||||
@@ -298,4 +298,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/static/hedge_plan.js?v=18"></script>
|
||||
<script src="/static/hedge_plan.js?v=19"></script>
|
||||
|
||||
Reference in New Issue
Block a user