Skip to content

fix: 窗口最小宽统一 520,解锁贴边分屏吸附 - #334

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

taekchef merged 1 commit into
mainfrom
codex/audit-window-min-520

Conversation

@taekchef

Copy link
Copy Markdown
Collaborator

背景

#325 验收反馈:780 还是不够窄,且拖窗口靠近屏幕边缘没有 macOS 原生贴边分屏吸附区。

根因

macOS 原生窗口平铺(拖近边缘的吸附区)只对"最小尺寸塞得进目标平铺块"的窗口开放。半屏宽约 750+,而 780 > 半屏 → 吸附区不出现。

实际改动

  • 窗口最小宽从 isImmersiveFamily ? 520 : 780 统一降为 520:小于半屏,吸附区恢复;窗格挤压收 28pt 细轨的机制在 520 下依然成立(两轨+分栏+可读主栏)。
  • 附带:三等分屏(约 500)仍小于 520 不给吸附,属合理边界。

共享文件占用

Sources/WeiBei/App/WeiBeiApp.swift frame 一处 + 注释两行,随合并释放。

验证

swift build ✅ / WeiBeiSelfCheck ✅;贴边吸附与 520 下三栏形态以真实 App 验收为准。

@taekchef
taekchef marked this pull request as ready for review August 22, 2026 08:31
@taekchef
taekchef merged commit 47d676d into main Aug 22, 2026
2 checks passed
wang-kaopu pushed a commit to wang-kaopu/weibei that referenced this pull request Aug 23, 2026
1. 加载动词镜像修正:回答 WebView 恒为 compact 预览(14px),仅 chat-wide 属性抬到 16px。
   WroughtMind#326 的镜像把非 chat-wide 当 17pt,窄窗口(WroughtMind#334 起最小宽 520)下内容宽 <620 时
   状态词 17pt vs 正文 14px,肉眼明显偏大。改为 chatWide 且非 compact 才 16,否则 14。
2. 完成跳变改缓动:收尾快照与后续 KaTeX/字体异步重测的高度修正,原先瞬间定格
   contentHeight,行高跳一下。非流式接受的高度统一走 0.14s easeOut 过渡
   (reduce motion 与流式期间保持即时)。
@taekchef
taekchef deleted the codex/audit-window-min-520 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