Repository navigation
fix(frontend): keep scrollbars flush and use one split line - #77
Merged
Merged
Conversation
Native scrollbars took layout width when a tab grew, and the drag sash sat beside the AI panel border. Paint an overlay thumb on the panel edge and make that sash the only divider.
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.
Summary
页面变长
原生滚动条占宽,文字重排
→ scrollbar-width: none
→ 悬浮滑块贴在面板侧边
左右分栏
4px 定位的拖动线 + AI 面板左边框
→ 1px 拖动线移到真实分界
→ 去掉面板自己的左边框
切到别的面板
滑块停在旧坐标
→ 立刻收起
Evidence
• Before: 滚动条一出现,标签内容变窄并重排;分栏处有两根线,左侧滚动条越过分割线;切面板后滑块停在屏幕中间,约 700ms 才消失。

• After: scrollbar.styles.test.ts 锁定 scrollbar-width: none。overlayScrollbar.test.ts 确认滑块贴边,且指针离开后面板滑块立即消失。dockview-sash.styles.test.ts 确认拖动线偏移 1.5px,AI 面板左边框为 0。桌面里请再看一次普通面板、AI 面板和切标签。
Merge Danger
Door: two-way
只改前端样式和悬浮滑块。回退这个提交即可恢复原来的滚动条和分割线。
Blast Radius: workspace layout
滚动指示改成悬浮,不再占布局宽度。编辑器右侧概览条被藏起,滚动条贴边。Kanban 里的 .workspace-right-panel 左边框还在,只有 Dockview 里的那条被去掉。