From e21fac7e1d1d48b16396c153e620d34bc5ec2f11 Mon Sep 17 00:00:00 2001 From: wait4xx Date: Sun, 25 Oct 2026 10:57:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(polish):=20=E8=A7=86=E8=A7=89=E5=A4=8D?= =?UTF-8?q?=E6=A0=B8=E4=BA=8C=E8=BD=AE=E5=85=AD=E9=A1=B9=E2=80=94=E2=80=94?= =?UTF-8?q?=E7=BD=91=E6=A0=BC=E5=8D=95=E4=B8=80=E9=AB=98=E5=BA=A6=E6=BA=90?= =?UTF-8?q?/=E5=AF=BC=E8=88=AAi18n/=E7=83=AD=E5=8A=9B=E5=9B=BE=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 图库:li 去 aspect-ratio(与行跨度双高度约束竞争=列洞根因面), img 改 object-fit cover 填满;截图前整页滚动触发懒加载 - Header:导航标签按 locale 取字典(en 页曾是中文);图标钮暗色 提色去底块(视觉复核 02/12 的灰块) - 热力图:构建期模块级缓存,zh/en 两页共享一次抓取(en 页曾空格) - en 首页移除机器翻译横幅(文章级标注才是本意);面板居中;计数器 文字投影 - Artalk E2E 报 fetch 失败定性为测试环境跨域(127.0.0.1 页面拉 wait4x.online API),生产同源不受影响——上线后专项验证 验证: pnpm astro build 21 页 exit 0;node tests/e2e.mjs 30/30 PASS (新构建全链重跑,含滚动后 21/21 图库断言) Spec: 2026-10-25_fix-site-polish Co-authored-by: GLM-5.3 --- src/components/CommandPalette.astro | 1 + src/components/Header.astro | 14 +++++++++----- src/components/pages/GalleryPage.astro | 10 +++++++++- src/lib/heatmap.ts | 11 ++++++++++- src/pages/en/index.astro | 2 -- tests/e2e.mjs | 7 +++++++ 6 files changed, 36 insertions(+), 9 deletions(-) diff --git a/src/components/CommandPalette.astro b/src/components/CommandPalette.astro index 55ca540..889e6a0 100644 --- a/src/components/CommandPalette.astro +++ b/src/components/CommandPalette.astro @@ -276,6 +276,7 @@ const navItems = [