Skip to content

fix(ui): 优化首页首屏与移动端项目布局 - #140

Draft
07xh wants to merge 2 commits into
masterfrom
codex/home-mobile-layout-20261119
Draft

07xh wants to merge 2 commits into
masterfrom
codex/home-mobile-layout-20261119

Conversation

@07xh

@07xh 07xh commented Nov 19, 2026

Copy link
Copy Markdown
Owner

首页在常见桌面尺寸出现横向滚动,下载入口位于较长的功能卡片之后;手机上的固定项目箭头会盖住正文。此改动收回两处越界装饰、提前主操作入口、压缩首屏间距,并在 900px 以下使用单列和带项目名的正常文档流导航。截图切换不再触发预览框内部滚动。

验证:

  • Edge:360/390/768/1024/1366/1440px,scrollWidth 均等于 clientWidth;1366×768、1440×900 的主操作完整显示。
  • 手机菜单展开/Escape 收起、深浅主题、截图切换和下一项目导航通过。
  • pnpm check:298 files,0 errors,0 warnings,5 hints。
  • pnpm exec tsc --noEmit、Cloudflare 模式完整 pnpm build、修改的 Astro 文件 Biome 检查通过。
  • release/discovery 检查 25/25;更新两处原有断点断言至 900px。
  • 全量 Node 检查 269/270:未修改的教程输出检查在 Windows 上存在 CRLF/LF 差异。
  • 仓库的 pnpm type-check 仍因 galleryConfig.ts、portfolio-motion.ts、portfolio-scenes.ts 原有缺失声明注解而失败;本 PR 不修改这些文件。
  • 独立静态审查无重要问题。尚未合并、部署或进行手机真机验收。

截图:
桌面
手机

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant