diff --git a/lib/common/static/hedge_plan.js b/lib/common/static/hedge_plan.js index 164ec0e..5d824bc 100644 --- a/lib/common/static/hedge_plan.js +++ b/lib/common/static/hedge_plan.js @@ -76,15 +76,15 @@ const opt = state.optionUnderly || "ETH"; const perp = state.perpUnderly || opt; const modeLabel = root.getAttribute("data-po-mode-label") || poMode; - // 实例模式锁定:手动选约只显示一种标的(不展示 ETH/BTC 双钮) + // 实例模式锁定:手动选约只显示一种标的文案(ETH 或 BTC;跨币写 BTC→ETH) const single = $("hp-uly-single"); if (single) { single.textContent = crossAsset ? opt + "→" + perp : opt; - single.title = "由 HEDGE_PO_MODE 锁定(" + modeLabel + "),不可页内切换"; + single.title = "本实例模式 " + modeLabel + ",标的固定不可切换"; } - document.querySelectorAll(".hp-uly-btn").forEach(function (b) { - b.hidden = true; - b.disabled = true; + // 彻底去掉永期页残留双钮(若有) + document.querySelectorAll("#hp-tab-perp_options .hp-uly-btn, #hp-po-layout .hp-uly-btn").forEach(function (b) { + b.remove(); }); const badge = $("hp-po-mode-badge"); if (badge) { diff --git a/lib/common/static/instance_theme.css b/lib/common/static/instance_theme.css index 39483df..a02a904 100644 --- a/lib/common/static/instance_theme.css +++ b/lib/common/static/instance_theme.css @@ -3635,42 +3635,50 @@ html[data-theme="light"] .opt-be-dist-down { .hedge-plan-page-wrap .hp-uly-lock { display: inline-flex; gap: 6px; - align-items: center; + align-items: baseline; + margin-right: 4px; + user-select: none; +} +.hedge-plan-page-wrap .hp-uly-lab { + font-size: 0.82rem; } .hedge-plan-page-wrap .hp-uly-single { + font-size: 0.95rem; + font-weight: 700; + letter-spacing: 0.04em; + color: #e8eeff; + border: none; + background: none; + padding: 0; + cursor: default; +} +.hedge-plan-page-wrap .hp-uly-lock .hp-uly-btn { + display: none !important; +} +.instance-header-toolbar-end .header-logout-btn { display: inline-flex; align-items: center; - justify-content: center; - min-width: 3.2rem; - padding: 6px 12px; + margin-left: 8px; + padding: 5px 12px; border: 1px solid #3a4a6e; border-radius: 8px; background: #1a2238; color: #dbe4ff; - font-weight: 600; - font-size: 0.88rem; - letter-spacing: 0.03em; - cursor: default; - user-select: none; + text-decoration: none; + font-size: 0.85rem; + white-space: nowrap; } -.hedge-plan-page-wrap .hp-uly-lock .hp-uly-btn:disabled { - opacity: 0.75; - cursor: not-allowed; -} -.top-nav-logout { - grid-column: 1; - justify-self: start; - align-self: center; -} -html[data-theme="light"] .top-nav-logout { - color: #334; - background: #f3f5fa; - border-color: #c5cddf; +.instance-header-toolbar-end .header-logout-btn:hover { + border-color: #6a7fb0; + color: #fff; } html[data-theme="light"] .hedge-plan-page-wrap .hp-uly-single { + color: #1a2438; +} +html[data-theme="light"] .instance-header-toolbar-end .header-logout-btn { background: #eef1f8; border-color: #c5cddf; - color: #1a2438; + color: #334; } .hedge-plan-page-wrap .hp-po-gate-inline { font-size: 0.82rem; diff --git a/lib/hedge_plan/templates/hedge_plan_panel.html b/lib/hedge_plan/templates/hedge_plan_panel.html index 6e32399..82e862b 100644 --- a/lib/hedge_plan/templates/hedge_plan_panel.html +++ b/lib/hedge_plan/templates/hedge_plan_panel.html @@ -66,8 +66,9 @@
- - {{ hedge_option_underlying or options_default_underly or 'ETH' }} + + 标的 + {{ hedge_option_underlying or options_default_underly or 'ETH' }} @@ -507,4 +508,4 @@
- + diff --git a/lib/instance/templates/embed_shell.html b/lib/instance/templates/embed_shell.html index 89993d6..76b58db 100644 --- a/lib/instance/templates/embed_shell.html +++ b/lib/instance/templates/embed_shell.html @@ -7,8 +7,8 @@ - - + + @@ -29,9 +29,6 @@
{% include 'instance_brand_header.html' %}