From e33d289e39bc0b1fe3c07fee872d05134212aacc Mon Sep 17 00:00:00 2001 From: dekun Date: Sun, 4 Oct 2026 07:20:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=A6=E9=B1=BC=E5=B1=8F=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=AB=AF=E5=86=85=E5=AE=B9=E9=94=81=201800=20=E5=B1=85?= =?UTF-8?q?=E4=B8=AD=EF=BC=8C=E6=99=AE=E9=80=9A=E5=B1=8F=E5=85=A8=E5=AE=BD?= =?UTF-8?q?=EF=BC=9B=E5=86=85=E5=B5=8C=E4=B8=8E=E7=8B=AC=E7=AB=8B=E6=89=93?= =?UTF-8?q?=E5=BC=80=E4=B8=80=E8=87=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- lib/common/static/instance_page.css | 10 +++++----- lib/instance/templates/embed_shell.html | 2 +- lib/instance/templates/index.html | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) 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 }} - +