Repository navigation
feat: 支持侧栏自选区上下拖动并记住高度 - #3
Merged
Merged
Conversation
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.
工作台左下角的自选列表与会话共用固定高度,扣除标题和输入框后只能展示少量股票。本次将自选区拆为独立面板,增加可上下拖动的分隔柄,并在拖动结束后保存高度,切换页面或重启客户端后恢复。
测试报告
环境:Windows 11 / Bun 1.4.2 / Electron 39(仓库自带运行时)。
bun test --isolate packages/uibun test --isolate packages/ui/src/components/layout/SidebarWorkspaceSplit.test.tsxbun run typecheckbun run i18n:checkbun run build:electrongit diff --check补充界面验证:使用 Playwright 操作真实 Electron,采用独立测试资料目录和示例数据,在 1440×1000、1200×768、1000×600、800×600 下检查拖动上下限、双击、方向键、列表独立滚动、页面切换、重新加载、完整进程重启后的高度恢复,以及深浅色主题和窄窗口布局,均通过。隐藏窗口的截图/鼠标输入在本机发生等待,最终改为独立可见测试窗口完成验证,测试窗口已关闭。控制台仅有现有未打包 Electron CSP 提示,无新增渲染错误。
修改后截图
向上拖大自选区(独立测试资料、示例数据):
600px 高的小窗口,保留会话、自选输入和列表以及底部设置:
关联 Issue:无。此 PR 不更新已发布的 Windows 安装包。