提交 fd7d510b 编写于 作者: B Benjamin Pasero

grid - only draw border around tabs as needed

上级 66e0b704
......@@ -37,7 +37,6 @@
cursor: pointer;
height: 35px;
box-sizing: border-box;
border: 1px solid transparent;
padding-left: 10px;
}
......
......@@ -771,9 +771,11 @@ export class TabsTitleControl extends TitleControl {
// Label
this.redrawLabel(editor, tabContainer, tabLabelWidget, tabLabel);
// Borders
tabContainer.style.borderLeftColor = (index !== 0) ? (this.getColor(TAB_BORDER) || this.getColor(contrastBorder)) : null;
tabContainer.style.borderRightColor = (index === this.group.count - 1) ? (this.getColor(TAB_BORDER) || this.getColor(contrastBorder)) : null;
// Borders / Outline
const borderLeftColor = (index !== 0) ? (this.getColor(TAB_BORDER) || this.getColor(contrastBorder)) : null;
const borderRightColor = (index === this.group.count - 1) ? (this.getColor(TAB_BORDER) || this.getColor(contrastBorder)) : null;
tabContainer.style.borderLeft = borderLeftColor ? `1px solid ${borderLeftColor}` : null;
tabContainer.style.borderRight = borderRightColor ? `1px solid ${borderRightColor}` : null;
tabContainer.style.outlineColor = this.getColor(activeContrastBorder);
// Settings
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册