Repository navigation
Conversation
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Left-positioned tab actions still allow the terminal shoulder inset to shrink the visible tab cap.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adjusts connected-tab close-button spacing to keep tab geometry consistent across terminal and wrapped states.
Changes:
- Updates connected-tab action padding and positioning.
- Adds geometry regression coverage.
- Adds a single-tab visual fixture.
File summaries
| File | Description |
|---|---|
connectedEditorTabs.css |
Adjusts close-action spacing. |
multiEditorTabsControl.test.ts |
Tests connected-tab geometry states. |
editorTabBar.fixture.ts |
Adds a single-tab fixture. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 1
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot <[email protected]>
Add explicit close-action hover fixtures for single, multiple, and wrapped tab layouts. Co-authored-by: Copilot <[email protected]>
19a981b
|
Added explicit close-action hover fixtures for the critical terminal layouts: single tab, last tab in a multi-tab row, upper wrapped row, and bottom wrapped row. These show the actual hover background so its inset spacing can be visually compared. Also narrowed width reservation to stable logical terminals, avoiding the viewport-edge geometry feedback loop seen in browser/Electron CI. |
Ensure every close-action hover fixture uses a clean active editor so the captured state shows the close glyph instead of a dirty indicator. Co-authored-by: Copilot <[email protected]>
Resolve the connected tab CSS conflict by retaining the close-action alignment fixes while adopting the newer external shoulder reservation from main.\n\nCo-authored-by: Copilot <[email protected]>
Reserve upper-row pill insets consistently in tab width and close-action positioning, with single, terminal, wrapped, and left-action regression coverage. Consolidates #336791 Co-authored-by: Copilot <[email protected]>
|
Consolidated into #337126, including the original close-button spacing fix, left/right action handling, geometry regression coverage, and single/terminal/wrapped close-hover fixtures. |
Pull request was closed
|
Closing this PR because its close-button spacing fix is being consolidated into #337126, which now includes the same upper-row inset reservation, left/right action positioning, single/terminal/wrapped geometry regression test, and Dark/Light close-hover fixtures. This avoids maintaining and reviewing two overlapping connected-tabs PRs while preserving the original visual fix. |
* Editor: stabilize connected tabs across zoom levels Let bottom-row connected tabs own the strip geometry directly instead of cancelling inherited pill gutters with negative offsets. This keeps their cap and document boundary aligned when Chromium rounds fractional zoom values while preserving upper-row pill spacing. Co-authored-by: Copilot <[email protected]> * test: update connected tab strip geometry Update the editor-tab layout expectations for direct bottom-row geometry and the intentional one-stroke overlap with the document surface. Co-authored-by: Copilot <[email protected]> * Editor: align connected tab actions to the top edge Top-align the non-wrapping connected strip and give editor actions the same full row height so their controls remain vertically centered with tab labels. Co-authored-by: Copilot <[email protected]> * test: update component screenshot baseline Accept the Ubuntu CI hash for the dark responsive model resize fixture after verifying the delta is limited to corner antialiasing. Co-authored-by: Copilot <[email protected]> * Editor: share modern tab row geometry Own the non-wrapping row-height formula in the shared Modern UI tab layout so connected editor actions cannot drift from tab density changes. Co-authored-by: Copilot <[email protected]> * test: restore stable component screenshot baseline Restore the original dark responsive model resize hash after CI oscillated back, confirming the alternate corner-antialias hash was nondeterministic. Co-authored-by: Copilot <[email protected]> * Editor: isolate connected tab colors and borders Give connected document tabs their own strip color, restore shared 2026 tab colors for Classic and Agents surfaces, and use the existing strip separator color for connected cap and shoulder outlines. Refs #336320 Co-authored-by: Copilot <[email protected]> * Editor: share connected tab left border Overlap first and wrapped-row-start connected fills by one stroke so their left edge reuses the editor body border instead of drawing an adjacent double border. Co-authored-by: Copilot <[email protected]> * Editor: simplify connected tab color ownership Use a single editorGroupHeader.connectedTabsBackground token and emit its derived styles only under the connected-tabs root marker. Co-authored-by: Copilot <[email protected]> * Editor: describe connected tab color as reusable Document editorGroupHeader.connectedTabsBackground by visual role rather than feature enablement so it remains suitable for any connected tab treatment. Co-authored-by: Copilot <[email protected]> * Editor: centralize connected tab ownership Share the connected-tab root marker across editor controls, contribution setup, and theming, and document the dedicated stylesheet scoping invariant. Co-authored-by: Copilot <[email protected]> * docs: define connected tab ownership Document the reusable connected header color, border ownership, marker lifecycle, and separation between CSS geometry and editor control behavior. Co-authored-by: Copilot <[email protected]> * Editor: derive connected action height from the row Use flex stretch and the existing separator stroke so connected editor actions follow default and compact row heights without a special row-height variable. Co-authored-by: Copilot <[email protected]> * Editor: isolate all connected tab palettes Move every strip background introduced by #335605 to editorGroupHeader.connectedTabsBackground while preserving the original shared tab backgrounds and independent foreground contrast fixes. Refs #336320 Co-authored-by: Copilot <[email protected]> * Editor: balance connected tab close spacing Reserve upper-row pill insets consistently in tab width and close-action positioning, with single, terminal, wrapped, and left-action regression coverage. Consolidates #336791 Co-authored-by: Copilot <[email protected]> * Editor: complete connected tab spacing Restore the terminal close-action shoulder reservation from the consolidated fix and remove the generic wrapped-row top inset so connected strips meet the header edge directly.\n\nCo-authored-by: Copilot <[email protected]> * Editor: balance terminal tab actions Let the external shoulder reservation own terminal geometry so close actions keep the same visible inset as ordinary and wrapped tabs. Add a regression assertion for balanced label- and edge-side action spacing.\n\nCo-authored-by: Copilot <[email protected]> * Editor: share connected tab frame borders Classify the outermost connected tab row explicitly so active tabs can reuse the editor frame's top stroke. First-position active tabs also reuse the left stroke, while inner wrapped rows retain pill gutters and balanced close actions.\n\nCo-authored-by: Copilot <[email protected]> * Editor: give frame sole border ownership Avoid overlapping the connected tab and editor frame strokes. The outermost tab now starts at the frame's inner edge with transparent top and left borders, allowing the editor frame and its clipping radius to be the sole painter at every zoom level.\n\nCo-authored-by: Copilot <[email protected]> * Editor: center connected tab actions Center the close glyph in its painted action surface and shift that surface outward by the same inset so label- and shoulder-side spacing remain balanced. Preserve sole editor-frame ownership of the outer border.\n\nCo-authored-by: Copilot <[email protected]> * Editor: repair connected tab outline regressions Preserve high contrast outlines where the outer editor frame is transparent. Account for both cap radii when hiding clipped tab slivers, and update stale assertions for centered actions and editor-owned first-tab borders. Co-authored-by: Copilot <[email protected]> * Editor: derive close clearance from the tab surface Share action clearance across row densities and label reservation, accounting for painted borders instead of shoulder width. Keep standard row starts on the editor frame and join top-row side strokes directly to its shared top edge. Co-authored-by: Copilot <[email protected]> * Editor: keep compact tab outlines visible under actions Let the selected tab fill own its surface instead of painting a second opaque action-container background over the trailing cap stroke. Preserve the close target's own hover and keyboard focus treatment. Co-authored-by: Copilot <[email protected]> * Editor: keep wrapped tab reservation width invariant Reserve the pill inset and active shoulder before classifying rows, and consume the inset in fill and action positioning rather than changing fit widths through row markers. Exercise wrapping boundary widths in both resize directions and with changing active tabs. Co-authored-by: Copilot <[email protected]> * Editor: explicitly retain high contrast close indicators Draw hover and focus outlines on the close action itself while keeping the surrounding action container transparent. Cover focused actions in both high contrast themes and both wrapped rows; account for Electron's hidden test window when checking CSS focus state. Co-authored-by: Copilot <[email protected]> * Editor: stabilize connected tab surfaces and close targets Keep wrapped fills contiguous, round free corners, and reserve close-action stroke clearance independently of selection. Preserve high-contrast target indicators without a second action-container border. Add geometry and selection regressions. Co-authored-by: Copilot <[email protected]> * Editor: respect disabled connected tab action hover state Exclude disabled actions without raising hover specificity over keyboard focus. Cover the real Alt-to-Close-Others transition in both high-contrast themes. Co-authored-by: Copilot <[email protected]> * Editor: consolidate connected tab high-contrast frames Share the HC editor-group frame without changing close-target geometry, keep shared strip theming separate from the Modern UI editor palette, and update regression coverage and documentation. Co-authored-by: Copilot <[email protected]> * Editor: ignore unrendered frame color in connected tab tests All four browser and Electron CI failures asserted black for an absent frame whose unused border color inherits currentColor. Assert the color only for the rendered HC frame, retaining geometry and frame-presence coverage. Seed a non-black foreground so focused runs reproduce the full-suite inheritance. Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
Fixes the connected document tab close action spacing so terminal shoulders and wrapped pill insets reserve the same space around the action as ordinary connected tabs. This keeps the visible tab cap width stable when closing down to a single tab.
Adds a geometry regression test covering multiple, single, bottom-wrapped, and upper-wrapped states, plus a single-tab component fixture.
Validation:
npm run eslint -- src/vs/workbench/test/browser/parts/editor/multiEditorTabsControl.test.ts src/vs/workbench/test/browser/componentFixtures/editor/editorTabBar.fixture.tsnpm run stylelint -- src/vs/workbench/contrib/modernUI/browser/media/connectedEditorTabs.css