Skip to content

fix: 修复 macOS 侧栏内容区域宽度 - #715

Open
zly2006 wants to merge 10 commits into
masterfrom
fix/macos-sidebar-content-area
Open

fix: 修复 macOS 侧栏内容区域宽度#715
zly2006 wants to merge 10 commits into
masterfrom
fix/macos-sidebar-content-area

Conversation

@zly2006

@zly2006 zly2006 commented Aug 30, 2026

Copy link
Copy Markdown
Owner

改动

  • 将 macOS 侧栏内容区 inset 提升到包住整棵 Compose 内容树的共同父布局。
  • 将 macOS user message host 纳入内容区约束,避免 Snackbar 按全窗口宽度布局。
  • 保持侧栏展开/收起时内容区跟随切换,覆盖根节点外发射的 bottom sheet 等 overlay。

原因

此前 padding 只传给页面根节点,页面外部发射的 user message 和部分 bottom sheet 仍按整个窗口测量,导致内容覆盖原生 sidebar。

验证

  • ./gradlew :shared:compileKotlinMacosArm64 :macosApp:compileKotlinMacosArm64 --no-daemon
  • ./gradlew :shared:ktlintMacosMainSourceSetCheck :macosApp:ktlintMacosMainSourceSetCheck --no-daemon

@zly2006 zly2006 added the bug Something isn't working label Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant