fix(desktop): ドラッグドロップの分割幅をプレビューと一致させる (#342)#343
Conversation
Dropping a file onto a pane used the Right sidebar open view width setting for the split percentage, producing a pane whose width did not match the blue drop preview (which always highlights the 50% zone). Drop into an explicit zone should honor the user's positional choice with a 50/50 split; the sidebar width setting remains for click-to-open flows from the sidebar. Closes #342
|
@codex review |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthrough
Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 分 Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Codex Review: Didn't find any major issues. 🚀 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
概要
Files タブから pane にファイルをドラッグして開いたとき、青いプレビューは 50% ゾーンを示しているのに、実際に開かれた file viewer が Right sidebar open view width 設定 (例: 25%) の幅で開いてしまい、プレビューと食い違う問題を修正。
原因
#336 で追加したドロップ処理では
addFileViewerPaneにuseRightSidebarOpenViewWidth: trueを渡していた。これによりストア側が Right sidebar の幅設定を split percentage に流用するため、設定が 25% だとドロップ結果の pane も 25% になっていた。プレビュー側は常に 50% ゾーンを表示するため不一致が発生。変更点
BasePaneWindowのドロップハンドラからuseRightSidebarOpenViewWidth: trueを外し、ドロップ時は常に DEFAULT (50/50) で分割するように変更。動作確認
bun run lint、apps/desktopのbun run typecheckパス。Closes #342
Summary by CodeRabbit
リリースノート