Modern UI: Prevent vertical scrolling when dragging connected tabs - #336879
na2co3 (na2co3-ftw) wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The combined wrapped-tabs and separate-pinned-row regression path lacks direct coverage.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Aligns connected-tab geometry to prevent vertical scrolling during tab drag.
Changes:
- Aligns connected fills and edges with the tab-strip gutter.
- Corrects overflow-edge positioning and wrapped pinned-row gutter handling.
- Updates geometry assertions.
| File | Description |
|---|---|
connectedEditorTabs.css |
Corrects connected-tab bounds and gutter behavior. |
multiEditorTabsControl.test.ts |
Updates CSS geometry expectations. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| } | ||
|
|
||
| .modern-ui.modern-ui-connected-editor-tabs.monaco-workbench .part.editor > .content .editor-group-container > .title.tabs.two-tab-bars > .tabs-and-actions-container:not(:first-child) { | ||
| .modern-ui.modern-ui-connected-editor-tabs.monaco-workbench .part.editor > .content .editor-group-container > .title.tabs.two-tab-bars > .tabs-and-actions-container:not(.wrapping):not(:first-child) { |
Updated comment to clarify the purpose of disposing the modifier-key emitter. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|


Problem
In Modern UI with conected tabs, dragging a tab can cause the tab strip to scroll vertically.
2026-09-19.13-15-17.mp4
Cause
The active tab's
tab-fillandtab-connected-edgeelements extend vertically beyond thetabs-container.--modern-ui-connected-tab-gutteralready includes the bottom border thickness, but both elements were positioned using the gutter plus one additional stroke thickness.When
workbench.editor.wrapTabsandworkbench.editor.pinnedTabsOnSeparateRoware enabled, the gutter value did not match the transparent border width of the tab.Fix
tab-fillandtab-connected-edgewith--modern-ui-connected-tab-gutter.tab-connected-overflow-edgefor the new height.