mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 09:35:37 -05:00
Change server group look (#13608)
* change server group look * remove dead code * add top padding * add bot padding as well * fix heights to account for padding * fix arrow alignment * fix ellipses and node length parity * fix alignment
This commit is contained in:
@@ -45,7 +45,7 @@ export interface IObjectExplorerTemplateData {
|
||||
export class ServerTreeRenderer implements IRenderer {
|
||||
|
||||
public static CONNECTION_HEIGHT = 23;
|
||||
public static CONNECTION_GROUP_HEIGHT = 38;
|
||||
public static CONNECTION_GROUP_HEIGHT = 33;
|
||||
public static CONNECTION_TEMPLATE_ID = 'connectionProfile';
|
||||
public static CONNECTION_GROUP_TEMPLATE_ID = 'connectionProfileGroup';
|
||||
public static OBJECTEXPLORER_HEIGHT = 23;
|
||||
@@ -231,14 +231,13 @@ export class ServerTreeRenderer implements IRenderer {
|
||||
}
|
||||
|
||||
private renderConnectionProfileGroup(connectionProfileGroup: ConnectionProfileGroup, templateData: IConnectionProfileGroupTemplateData): void {
|
||||
|
||||
let rowElement = this.findParentElement(templateData.root, 'monaco-tree-row');
|
||||
if (rowElement) {
|
||||
let groupElement = this.findParentElement(templateData.root, 'server-group');
|
||||
if (groupElement) {
|
||||
if (connectionProfileGroup.color) {
|
||||
rowElement.style.background = connectionProfileGroup.color;
|
||||
groupElement.style.background = connectionProfileGroup.color;
|
||||
} else {
|
||||
// If the group doesn't contain specific color, assign the default color
|
||||
rowElement.style.background = DefaultServerGroupColor;
|
||||
groupElement.style.background = DefaultServerGroupColor;
|
||||
}
|
||||
}
|
||||
if (connectionProfileGroup.description && (connectionProfileGroup.description !== '')) {
|
||||
|
||||
Reference in New Issue
Block a user