fix: 2xl 宽屏放开站点容器到 1600px,消掉 1920 屏左右过宽空边
CI / check (pull_request) Successful in 1m39s

navbar/正文/footer 三处容器与 practice 主栏在 <1536px 维持 1200px 上限不变,
>=1536px 升到 1600px;桌面导航展开网格列由 minmax(0,180px) 改 minmax(0,1fr),
让网格随抽屉面板铺满。1200px 容器下列宽本就 165px < 180px 上限,
渲染与之前完全一致,1280 e2e 视觉基线零漂移。
This commit is contained in:
cqh963852 committed 2026-11-15 17:34:52 +08:00
1 parent 0b2656689f
commit 045e2bd033
3 files changed
+5 -5

No files matched your search

@@ -188,7 +188,7 @@ export function SiteNavbar({
</ShadowButton>
</span>
</div>
<div className="grid gap-x-1.5 gap-y-2 max-lg:grid-cols-2 lg:grid-cols-[96px_repeat(6,minmax(0,180px))]">
<div className="grid gap-x-1.5 gap-y-2 max-lg:grid-cols-2 lg:grid-cols-[96px_repeat(6,minmax(0,1fr))]">
{bands.map(({ row, divider, start, span }) => (
<Fragment key={row.sectionKey}>
<div
+3 -3
View File
@@ -66,13 +66,13 @@ export function SitePage({
className="relative z-50 flex-none bg-paper"
style={viewTransitionName ? { viewTransitionName } : undefined}
>
<div className="mx-auto w-full max-w-[1200px] px-6 pt-8">
<div className="mx-auto w-full max-w-[1200px] px-6 pt-8 2xl:max-w-[1600px]">
<SiteNavbar brand={nav.brand} rows={nav.rows} active={active} />
</div>
</div>
)}
<div data-scroll-root className="min-h-0 flex-1 overflow-y-auto">
<div className="mx-auto w-full max-w-[1200px] px-6 pb-8">
<div className="mx-auto w-full max-w-[1200px] px-6 pb-8 2xl:max-w-[1600px]">
{(title || subtitle || desc) && (
<div className="mb-7">
{title && <h1 className="m-0 text-t1 font-extrabold text-ink">{title}</h1>}
@@ -84,7 +84,7 @@ export function SitePage({
</div>
</div>
<div className="flex-none bg-paper" style={{ viewTransitionName: 'site-footer' }}>
<div className="mx-auto w-full max-w-[1200px] px-6 pb-6">
<div className="mx-auto w-full max-w-[1200px] px-6 pb-6 2xl:max-w-[1600px]">
<SiteFooter />
</div>
</div>
+1 -1
View File
@@ -12,7 +12,7 @@ export function App() {
<PageFlipZone prev={flips.prev} next={flips.next}>
<div className="flex min-h-dvh text-content text-body">
<SiteSidebar brand={nav.brand} rows={nav.rows} active="practice" />
<main className="mx-auto w-full max-w-[1200px] min-w-0 flex-1 px-3 py-4 max-lg:pr-12 max-lg:pt-16">
<main className="mx-auto w-full max-w-[1200px] min-w-0 flex-1 px-3 py-4 2xl:max-w-[1600px] max-lg:pr-12 max-lg:pt-16">
<div className="mb-4">
<h1 className="m-0 text-t1 font-extrabold text-ink">在线练习</h1>
<p className="m-0 mt-1.5 text-content text-mute">