diff --git a/lib/common/static/instance_page.css b/lib/common/static/instance_page.css index 8ecde14..69b8526 100644 --- a/lib/common/static/instance_page.css +++ b/lib/common/static/instance_page.css @@ -4,12 +4,12 @@ .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} body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:#0b0d14;color:#eaeaea;padding:14px 12px} - /* 内容区锁定 1800,超宽两侧留白 */ - .container{width:100%;max-width:min(1800px,96vw);margin:0 auto;padding:0 clamp(6px,1vw,14px)} + /* 普通屏:铺满可用宽度;带鱼屏再锁 1800(见下方 media) */ + .container{width:100%;max-width:none;margin:0 auto;padding:0 clamp(6px,1vw,14px)} body[data-embed-shell="1"] .container{ - max-width:min(1800px,96vw); + max-width:none; width:100%; - margin:0 auto; + margin:0; padding:0 clamp(6px,1vw,14px); } .header{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:12px} @@ -174,7 +174,7 @@ .panel-scroll,.pos-list{max-height:420px} .records-card .table-wrap{max-height:620px;overflow:auto} } - /* 带鱼屏(宽高比≥21:9):锁定 1800 居中,两侧留白 */ + /* 带鱼屏:独立打开与中控内嵌内容均锁 1800 居中留白;工作台外壳由中控全屏 */ @media (min-aspect-ratio: 21/9) { .container, body[data-embed-shell="1"] .container{ diff --git a/lib/instance/templates/embed_shell.html b/lib/instance/templates/embed_shell.html index 7b53101..ad90fca 100644 --- a/lib/instance/templates/embed_shell.html +++ b/lib/instance/templates/embed_shell.html @@ -8,7 +8,7 @@ - + diff --git a/lib/instance/templates/index.html b/lib/instance/templates/index.html index 6812a4d..c632560 100644 --- a/lib/instance/templates/index.html +++ b/lib/instance/templates/index.html @@ -18,7 +18,7 @@ {{ pwa_app_name }} - +