Skip to content

Commit

Permalink
some more polish
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Sep 16, 2020
1 parent 417e97b commit c290d7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
flex-wrap: wrap;
}

.monaco-workbench .part.editor>.content .editor-group-container>.title.tabs >.tabs-and-actions-container.multi-line>.monaco-scrollable-element>.tabs-container::after {
.monaco-workbench .part.editor>.content .editor-group-container>.title.tabs >.tabs-and-actions-container.multi-line > .monaco-scrollable-element > .tabs-container::after {
content: ""; /* Add a hidden space after the last tab in multi-line tabs */
flex: 1 0 auto;
}
Expand Down
5 changes: 1 addition & 4 deletions src/vs/workbench/browser/parts/editor/tabsTitleControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1051,11 +1051,8 @@ export class TabsTitleControl extends TitleControl {
// Borders / Outline
const borderRightColor = ((isTabLastSticky ? this.getColor(TAB_LAST_PINNED_BORDER) : undefined) || this.getColor(TAB_BORDER) || this.getColor(contrastBorder));
tabContainer.style.borderRight = borderRightColor ? `1px solid ${borderRightColor}` : '';
tabContainer.style.borderBottom = borderRightColor && this.accessor.partOptions.multiLineTabs ? `1px solid ${borderRightColor}` : ''; // bottom border when wrapping multi-line
tabContainer.style.outlineColor = this.getColor(activeContrastBorder) || '';
// Add a border to the bottom of the tabs if multi-line tabs is enabled
if (this.accessor.partOptions.multiLineTabs) {
tabContainer.style.borderBottom = `1px solid ${borderRightColor}`;
}

// Settings
const tabActionsVisibility = isTabSticky && options.pinnedTabSizing === 'compact' ? 'off' /* treat sticky compact tabs as tabCloseButton: 'off' */ : options.tabCloseButton;
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/common/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1219,6 +1219,7 @@ export interface IWorkbenchEditorConfiguration {

interface IEditorPartConfiguration {
showTabs?: boolean;
multiLineTabs?: boolean;
scrollToSwitchTabs?: boolean;
highlightModifiedTabs?: boolean;
tabCloseButton?: 'left' | 'right' | 'off';
Expand All @@ -1243,7 +1244,6 @@ interface IEditorPartConfiguration {
value?: number;
perEditorGroup?: boolean;
};
multiLineTabs?: boolean;
}

export interface IEditorPartOptions extends IEditorPartConfiguration {
Expand Down

0 comments on commit c290d7c

Please sign in to comment.