Merged
Conversation
工作区多时列表区域太小,新增底部 resize handle 允许用户拖拽调整高度(80-400px), 高度持久化到 localStorage;同时缩减侧边栏顶部留空。
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.
问题根因
工作区列表固定
max-h-[120px],工作区较多时只能看到约 4 个,需要滚动才能浏览全部,用户体验不佳。(#224)具体修改
sidebar-atoms.ts— 新增workspaceListHeightAtom(atomWithStorage,默认 120px),持久化工作区列表高度WorkspaceSelector.tsx— 将硬编码max-h-[120px]替换为动态maxHeight,底部添加拖拽 resize handle(范围 80-400px),使用getBoundingClientRect取实际渲染高度保证拖拽跟手,组件卸载时自动清理事件监听LeftSidebar.tsx— 侧边栏顶部留空从 50px 缩减至 30px,释放更多垂直空间审查情况