From 625eabb15ca374ad9475a69571fa1efadb27474c Mon Sep 17 00:00:00 2001 From: dekun Date: Sun, 23 Aug 2026 08:27:32 +0800 Subject: [PATCH] Cap ultrawide layout at 1600px centered using 21:9 aspect ratio. Apply fixed container width only on fish-eye monitors; bump instance_page.css cache version. Co-authored-by: Cursor --- lib/common/static/instance_page.css | 4 ++-- lib/instance/templates/embed_shell.html | 2 +- lib/instance/templates/index.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/common/static/instance_page.css b/lib/common/static/instance_page.css index c98e625..79c2399 100644 --- a/lib/common/static/instance_page.css +++ b/lib/common/static/instance_page.css @@ -165,8 +165,8 @@ .panel-scroll,.pos-list{max-height:420px} .records-card .table-wrap{max-height:620px;overflow:auto} } - /* 带鱼/超宽:整页(含顶栏统计)固定 1600 居中;1920 仍用上方 min(1840px,96vw) */ - @media (min-width: 2000px){ + /* 带鱼屏(宽高比≥21:9):整页固定 1600 居中;普通宽屏仍用 min(1840px,96vw) */ + @media (min-aspect-ratio: 21/9) and (min-width: 1601px) { .container{max-width:1600px;width:100%} } @media (min-width: 2560px){ diff --git a/lib/instance/templates/embed_shell.html b/lib/instance/templates/embed_shell.html index fcf7b2a..87475fb 100644 --- a/lib/instance/templates/embed_shell.html +++ b/lib/instance/templates/embed_shell.html @@ -7,7 +7,7 @@ - + diff --git a/lib/instance/templates/index.html b/lib/instance/templates/index.html index f17667d..b2e3985 100644 --- a/lib/instance/templates/index.html +++ b/lib/instance/templates/index.html @@ -18,7 +18,7 @@ {{ pwa_app_name }} - +