Skip to content

Commit 2cfe4ca

Browse files
committed
Removed unused CSS classes from tab elements in MultiEditorTabsControl
1 parent a78b270 commit 2cfe4ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vs/workbench/browser/parts/editor/multiEditorTabsControl.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,6 +1770,11 @@ export class MultiEditorTabsControl extends EditorTabsControl {
17701770
// positioned editor actions container when tabs wrap. The margin needs to
17711771
// be the width of the editor actions container to avoid screen cheese.
17721772
tabsContainer.style.setProperty('--last-tab-margin-right', tabsWrapMultiLine ? `${editorToolbarContainer.offsetWidth}px` : '0');
1773+
1774+
// Remove old css classes that are not needed anymore
1775+
for (const tab of tabsContainer.children) {
1776+
tab.classList.remove('last-in-row');
1777+
}
17731778
}
17741779

17751780
// Setting enabled: selectively enable wrapping if possible

0 commit comments

Comments
 (0)