Skip to content

feat: 窗口自适应——最小宽 780/沉浸式 520 - #325

Merged
taekchef merged 1 commit into
mainfrom
codex/audit-adaptive-window
Aug 22, 2026
Merged

taekchef merged 1 commit into
mainfrom
codex/audit-adaptive-window

Conversation

@taekchef

Copy link
Copy Markdown
Collaborator

实际改动(体检治理路线图批次 5)

  • 窗口最小宽度 1120 → 780(多窗格文档族),沉浸式单栏 520。WeiBeiApp 的 frame 改为按 store.layout.isImmersiveFamily 动态取值,窗口缩放约束实时跟随布局族切换。
  • 一行门槛解锁全部既有窄屏机制(审计原话:窄屏布局写好了永远触发不了):窗格挤压收 28pt 细轨(ContentRailPolicy)、三栏在 780 下每栏 ~250 进入可读窄栏、分栏拖拽最小值兜底细轨宽、课程空间三档窄分支(980/960/900 的 isCompact)、空启动页紧凑布局(<1140)。零新增布局代码——本 PR 只开闸门。

未做内容

  • 窄窗口下的强制单栏/自动收轨策略(当前是"自由挤压 + 细轨磁吸"的自然形态),等真实试用反馈再决定要不要加自动策略。
  • 课程空间侧栏在 <780 下的专项适配(目前依赖 isCompact 分支,需真实验收确认)。

共享文件占用

  • Sources/WeiBei/App/WeiBeiApp.swift:frame 一处 + 注释两行。负责人本任务,PR 合并即释放。

验证

  • swift build ✅ / WeiBeiSelfCheck ✅ / 冻结面零触碰
  • 窄窗口行为以真实 App 冒烟为准(本批为用户明确要求"做做看效果"的试做项)

冒烟

  • 合并后候选包:拖窗口从 1240 → 780 → 沉浸式 520,观察三栏挤压成细轨、课程页窄分支、空启动页紧凑形态。

@taekchef
taekchef marked this pull request as ready for review August 22, 2026 07:26
@taekchef
taekchef merged commit 7c02f8d into main Aug 22, 2026
2 checks passed
@taekchef
taekchef deleted the codex/audit-adaptive-window branch August 27, 2026 14:29
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