Fix ultrawide 1600px cap when Windows display scaling shrinks viewport.
Trigger on 21:9 aspect ratio only, without min-width 1601, so scaled fish-eye monitors still get 1600px container. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -165,9 +165,14 @@
|
||||
.panel-scroll,.pos-list{max-height:420px}
|
||||
.records-card .table-wrap{max-height:620px;overflow:auto}
|
||||
}
|
||||
/* 带鱼屏(宽高比≥21:9):整页固定 1600 居中;普通宽屏仍用 min(1840px,96vw) */
|
||||
@media (min-aspect-ratio: 21/9) and (min-width: 1601px) {
|
||||
.container{max-width:1600px;width:100%}
|
||||
/* 带鱼屏(宽高比≥21:9):整页固定 1600 居中;不依赖 2000px 视口(避免 Win 缩放后失效) */
|
||||
@media (min-aspect-ratio: 21/9) {
|
||||
.container{
|
||||
width:100%;
|
||||
max-width:min(1600px, calc(100vw - 24px));
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
}
|
||||
}
|
||||
@media (min-width: 2560px){
|
||||
.dual-panel-grid{gap:18px}
|
||||
|
||||
Reference in New Issue
Block a user