恢复币本位「重试卖回」常显,带鱼屏内容区改回 1800 居中留白。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -4,13 +4,12 @@
|
|||||||
.order-entry-model-row select.order-entry-model-sub{min-width:7em;max-width:10rem}
|
.order-entry-model-row select.order-entry-model-sub{min-width:7em;max-width:10rem}
|
||||||
.order-leverage-hint{font-size:.78rem;color:#cfd3ef;white-space:nowrap;align-self:center}
|
.order-leverage-hint{font-size:.78rem;color:#cfd3ef;white-space:nowrap;align-self:center}
|
||||||
body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:#0b0d14;color:#eaeaea;padding:14px 12px}
|
body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:#0b0d14;color:#eaeaea;padding:14px 12px}
|
||||||
/* 1920 左右用满:约 96vw / 1840,两侧留白更小 */
|
/* 内容区锁定 1800,超宽两侧留白 */
|
||||||
.container{width:100%;max-width:min(1840px,96vw);margin:0 auto;padding:0 clamp(6px,1vw,14px)}
|
.container{width:100%;max-width:min(1800px,96vw);margin:0 auto;padding:0 clamp(6px,1vw,14px)}
|
||||||
/* 中控工作台内嵌:铺满 iframe,不受带鱼屏 1920 居中限制 */
|
|
||||||
body[data-embed-shell="1"] .container{
|
body[data-embed-shell="1"] .container{
|
||||||
max-width:none;
|
max-width:min(1800px,96vw);
|
||||||
width:100%;
|
width:100%;
|
||||||
margin:0;
|
margin:0 auto;
|
||||||
padding:0 clamp(6px,1vw,14px);
|
padding:0 clamp(6px,1vw,14px);
|
||||||
}
|
}
|
||||||
.header{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:12px}
|
.header{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:12px}
|
||||||
@@ -175,18 +174,15 @@
|
|||||||
.panel-scroll,.pos-list{max-height:420px}
|
.panel-scroll,.pos-list{max-height:420px}
|
||||||
.records-card .table-wrap{max-height:620px;overflow:auto}
|
.records-card .table-wrap{max-height:620px;overflow:auto}
|
||||||
}
|
}
|
||||||
/* 带鱼屏(宽高比≥21:9):独立打开时固定 1920 居中;中控内嵌仍全宽 */
|
/* 带鱼屏(宽高比≥21:9):锁定 1800 居中,两侧留白 */
|
||||||
@media (min-aspect-ratio: 21/9) {
|
@media (min-aspect-ratio: 21/9) {
|
||||||
.container{
|
.container,
|
||||||
|
body[data-embed-shell="1"] .container{
|
||||||
width:100%;
|
width:100%;
|
||||||
max-width:min(1920px, calc(100vw - 24px));
|
max-width:min(1800px, calc(100vw - 24px));
|
||||||
margin-left:auto;
|
margin-left:auto;
|
||||||
margin-right:auto;
|
margin-right:auto;
|
||||||
}
|
}
|
||||||
body[data-embed-shell="1"] .container{
|
|
||||||
max-width:none;
|
|
||||||
margin:0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@media (min-width: 2560px){
|
@media (min-width: 2560px){
|
||||||
.dual-panel-grid{gap:18px}
|
.dual-panel-grid{gap:18px}
|
||||||
|
|||||||
@@ -2258,15 +2258,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function shouldShowSpotSellBanner(d, positions) {
|
function shouldShowSpotSellBanner(d, positions) {
|
||||||
if (!isCoinMarginMode()) return false;
|
// 币本位下始终露出「重试卖回」(含有仓):便于清交易户残留,文案随选中/残留标的变化
|
||||||
const ss = d && d.spot_sell;
|
|
||||||
if (!ss) return false;
|
|
||||||
const hasCoinPos = (positions || []).some(function (p) { return isCoinPos(p); });
|
const hasCoinPos = (positions || []).some(function (p) { return isCoinPos(p); });
|
||||||
if (hasCoinPos) return false;
|
const coinMode =
|
||||||
if (ss.bridge_status === "pending_sell_spot") return true;
|
isCoinMarginMode() ||
|
||||||
const eth = Number(ss.trading_eth || 0);
|
hasCoinPos ||
|
||||||
const btc = Number(ss.trading_btc || 0);
|
(d && d.options_margin_mode === "coin") ||
|
||||||
return eth > 1e-12 || btc > 1e-12;
|
!!(d && d.spot_sell);
|
||||||
|
return !!coinMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
function spotSellUnderlying(ss) {
|
function spotSellUnderlying(ss) {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<script src="/static/autofill_guard.js?v=1"></script>
|
<script src="/static/autofill_guard.js?v=1"></script>
|
||||||
<link rel="stylesheet" href="/static/instance_theme_early.css?v=4">
|
<link rel="stylesheet" href="/static/instance_theme_early.css?v=4">
|
||||||
<link rel="stylesheet" href="/static/account_risk_badge.css?v=4">
|
<link rel="stylesheet" href="/static/account_risk_badge.css?v=4">
|
||||||
<link rel="stylesheet" href="/static/instance_page.css?v=23">
|
<link rel="stylesheet" href="/static/instance_page.css?v=24">
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=126">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=126">
|
||||||
<script src="/static/account_risk_badge.js?v=4"></script>
|
<script src="/static/account_risk_badge.js?v=4"></script>
|
||||||
<script src="/static/open_submit_gate.js?v=1"></script>
|
<script src="/static/open_submit_gate.js?v=1"></script>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<link rel="apple-touch-icon" href="/static/icons/apple-touch-icon.png">
|
<link rel="apple-touch-icon" href="/static/icons/apple-touch-icon.png">
|
||||||
<link rel="manifest" href="/static/icons/manifest.webmanifest">
|
<link rel="manifest" href="/static/icons/manifest.webmanifest">
|
||||||
<title>{{ pwa_app_name }}</title>
|
<title>{{ pwa_app_name }}</title>
|
||||||
<link rel="stylesheet" href="/static/instance_page.css?v=23">
|
<link rel="stylesheet" href="/static/instance_page.css?v=24">
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=126">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=126">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -356,4 +356,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="/static/options_expiry_countdown.js?v=1"></script>
|
<script src="/static/options_expiry_countdown.js?v=1"></script>
|
||||||
<script src="/static/options_panel.js?v=67"></script>
|
<script src="/static/options_panel.js?v=68"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user