中控内嵌工作台带鱼屏铺满宽度,独立打开仍保持 1920 居中。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6,6 +6,13 @@
|
|||||||
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,两侧留白更小 */
|
/* 1920 左右用满:约 96vw / 1840,两侧留白更小 */
|
||||||
.container{width:100%;max-width:min(1840px,96vw);margin:0 auto;padding:0 clamp(6px,1vw,14px)}
|
.container{width:100%;max-width:min(1840px,96vw);margin:0 auto;padding:0 clamp(6px,1vw,14px)}
|
||||||
|
/* 中控工作台内嵌:铺满 iframe,不受带鱼屏 1920 居中限制 */
|
||||||
|
body[data-embed-shell="1"] .container{
|
||||||
|
max-width:none;
|
||||||
|
width:100%;
|
||||||
|
margin:0;
|
||||||
|
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}
|
||||||
.header h1{font-size:1.75rem;color:#dbe4ff;text-align:center;line-height:1.25}
|
.header h1{font-size:1.75rem;color:#dbe4ff;text-align:center;line-height:1.25}
|
||||||
.exchange-tag{font-size:.82rem;font-weight:600;color:#b8f5d0;background:#14241e;border:1px solid #2d6a4f;padding:5px 14px;border-radius:999px;letter-spacing:.06em}
|
.exchange-tag{font-size:.82rem;font-weight:600;color:#b8f5d0;background:#14241e;border:1px solid #2d6a4f;padding:5px 14px;border-radius:999px;letter-spacing:.06em}
|
||||||
@@ -168,7 +175,7 @@
|
|||||||
.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 居中;不依赖视口宽度(避免 Win 缩放后失效) */
|
/* 带鱼屏(宽高比≥21:9):独立打开时固定 1920 居中;中控内嵌仍全宽 */
|
||||||
@media (min-aspect-ratio: 21/9) {
|
@media (min-aspect-ratio: 21/9) {
|
||||||
.container{
|
.container{
|
||||||
width:100%;
|
width:100%;
|
||||||
@@ -176,6 +183,10 @@
|
|||||||
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}
|
||||||
|
|||||||
@@ -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=22">
|
<link rel="stylesheet" href="/static/instance_page.css?v=23">
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=125">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=125">
|
||||||
<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=22">
|
<link rel="stylesheet" href="/static/instance_page.css?v=23">
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=125">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=125">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Reference in New Issue
Block a user