12 Commits

Author SHA1 Message Date
km2023
356ab3c3a0 docs(readme): sync adaptive section to authoritative AGENTS.md + audit result 2026-06-30 16:18:20 +08:00
km2023
8e86e22ad2 docs(agents): rewrite AGENTS.md as the single authoritative adaptive-layout spec
Unify the layered-decoupling approach (art in the 9:16 canvas, UI anchored to the device-stage screen container) from docs/adaptive-architecture.md, fold in the dialog fix (cd83c35), drop the wrong 'canvas is deprecated' framing, add a 3-step element-placement decision and the dialog anti-pattern. Codex/teammates read this file to adapt the remaining pages consistently.
2026-06-30 15:34:29 +08:00
km2023
cd83c358cf fix(home): move dialog out of 9:16 canvas so it stays screen-fixed
The home dialog used bottom-[15.8%] inside the 9:16 canvas, whose height scales with width (h = w*16/9), so the dialog drifted vertically as viewport width changed. Moved the dialog block to the screen-container layer beside the tab bar, so it now shares the tab's screen-relative anchoring and no longer moves with width.
2026-06-30 15:15:46 +08:00
cchis
ab230d6cfb 存档:首页 tab/黑边阶段改动 + 自适应规范文档
- home-page: 底部 tab 贴屏幕底、全新系列角标归位、画布铺满宽修左侧黑边
  (首页仍是过程态,后续按「540容器 + 流式」最简方案重构)
- AGENTS.md: 自适应规范(给 codex / 同事,三规则 + 三不要 + 验证法)
- README.md(外层): 项目总览 + 启动 + 当前进度

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 15:50:26 +08:00
cchis
2f82197e2f 首页底部tab bar:贴屏幕底+flex等分+底栏图去圆角
- 底部4个导航(商城/心动时刻/宠物/档案)从画布内百分比定位,
  改成贴device-stage底部的flex tab bar(absolute bottom-0,等分,宽度自适应)
- 几何验证:各比例下 bottom=屏幕高(贴底)、w=屏幕宽(满宽)、left=0
- 保留 bottom-icon-bar 发光底栏作背景,scale-x-1.12+overflow-hidden 裁掉两端圆角
- 解决:手机宽度变化导致的 tab 位置错乱(不再用百分比)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 14:47:02 +08:00
cchis
1cb80f3b87 首页容器:去手机外壳+总宽锁540居中+窄屏100%
- app-shell: 去掉 web-phone-preview 手机外框(useWebPhonePreview=false)
- index.css device-stage: width min(100vw,540px)+margin-inline auto+100dvh(居中,窄屏100%)
- 删除 @media768 的 9:16 框,改为始终 540

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 14:21:11 +08:00
cchis
d044e4e568 cleanup: 移除 device-stage 的 container-type:size 死代码
画布改用 inline style 的 vw/vh 后不再依赖容器查询单位(cqw/cqh),
container-type:size 成为死代码且对 device-stage 有 size containment 副作用,移除。
全局已确认无 cq 单位在用。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 14:07:26 +08:00
cchis
95a6f15564 补commit:画布inline style修复(1a59f86遗漏了home-page)
工作区已有inline style修复且探针验证几何正确,但1a59f86只commit了
index.css清理,漏掉home-page。此commit补上画布div的inline style:
width=min(100vw,540px,calc(100vh*9/16)) + aspectRatio 9/16,背景层absolute inset-0。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 14:03:56 +08:00
cchis
4d2c686f03 首页自适应优化:背景视频铺满整屏
- index.css: 新增 .home-bg-cover(absolute inset-0)
- home-page.tsx: home-canvas 前插入背景视频层(成对插入,不破坏JSX)
- 效果:背景视频独立铺满真实屏,540画布内保留原视频(前景对齐美术构图),
  画布外区域由铺满背景自然延续,消除瘦长屏的深蓝色块边界,无边界沉浸
- DOM验证: home-bg-cover + home-canvas 均生效
2026-06-29 13:08:16 +08:00
km2023
b3da91f17f chore: standardize on pnpm, remove npm lockfile
Mixed npm + pnpm installs corrupted node_modules and broke
@tailwindcss/vite resolution, which stopped the dev server from
starting. Standardize the project on pnpm:

- remove package-lock.json (keep pnpm-lock.yaml as the single lockfile)
- switch all README commands from npm to pnpm, and document that
  npm/yarn must not be mixed in

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 11:37:30 +08:00
km2023
8f164fd04e docs: rewrite README with project overview and Capacitor build flow
Replace the default Vite template README with project-specific docs:
tech stack, dev/build/sync scripts, the dist-based Capacitor packaging
flow (build before cap sync), project structure, and the dev-only
home-layout writer plugin.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 11:25:04 +08:00
km2023
4ad8e7cbec chore: 初始化仓库,配置 Git LFS 管理大素材
- git init (分支 main) + remote origin → gitea comi-logic/vtubermini
- 根级 .gitignore 排除 node_modules/dist/android-build/releases(APK)/日志/.codex-logs
- .gitattributes 用 Git LFS 跟踪 *.png/*.mp4 等媒体(141 个文件)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 11:19:40 +08:00