Repository navigation
fix: 窗口最小宽统一 520,解锁贴边分屏吸附 - #334
Merged
Merged
Conversation
taekchef
marked this pull request as ready for review
August 22, 2026 08:31
This was referenced Aug 22, 2026
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 与流式期间保持即时)。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
#325 验收反馈:780 还是不够窄,且拖窗口靠近屏幕边缘没有 macOS 原生贴边分屏吸附区。
根因
macOS 原生窗口平铺(拖近边缘的吸附区)只对"最小尺寸塞得进目标平铺块"的窗口开放。半屏宽约 750+,而 780 > 半屏 → 吸附区不出现。
实际改动
共享文件占用
Sources/WeiBei/App/WeiBeiApp.swiftframe 一处 + 注释两行,随合并释放。验证
swift build ✅ / WeiBeiSelfCheck ✅;贴边吸附与 520 下三栏形态以真实 App 验收为准。