diff --git a/extensions/big-data-cluster/src/bigDataCluster/dialog/bdcDashboard.ts b/extensions/big-data-cluster/src/bigDataCluster/dialog/bdcDashboard.ts index e1d6b3e020..502c7cf806 100644 --- a/extensions/big-data-cluster/src/bigDataCluster/dialog/bdcDashboard.ts +++ b/extensions/big-data-cluster/src/bigDataCluster/dialog/bdcDashboard.ts @@ -123,7 +123,7 @@ export class BdcDashboard { } ).component(); - this.mainAreaContainer.addItem(this.navContainer, { flex: `0 0 ${navWidth}`, CSSStyles: { 'padding-left': '10px', 'border-right': 'solid 1px #ccc' } }); + this.mainAreaContainer.addItem(this.navContainer, { flex: `0 0 ${navWidth}`, CSSStyles: { 'padding': '0 20px 0 20px', 'border-right': 'solid 1px #ccc' } }); // Overview nav item - this will be the initial page const overviewNavItemDiv = modelView.modelBuilder.divContainer().withLayout({ width: navWidth, height: '30px' }).withProperties({ CSSStyles: { 'cursor': 'pointer' } }).component(); @@ -133,14 +133,14 @@ export class BdcDashboard { const overviewPage = new BdcDashboardOverviewPage(this, this.model).create(modelView); this.currentPage = overviewPage; this.currentTab = { div: overviewNavItemDiv, dot: undefined, text: overviewNavItemText }; - this.mainAreaContainer.addItem(overviewPage, { flex: '0 0 100%' }); + this.mainAreaContainer.addItem(overviewPage, { flex: '0 0 100%', CSSStyles: { 'margin': '0 20px 0 20px' } }); overviewNavItemDiv.onDidClick(() => { if (this.currentTab) { this.currentTab.text.updateCssStyles(unselectedTabCss); } this.mainAreaContainer.removeItem(this.currentPage); - this.mainAreaContainer.addItem(overviewPage, { flex: '0 0 100%' }); + this.mainAreaContainer.addItem(overviewPage, { flex: '0 0 100%', CSSStyles: { 'margin': '0 20px 0 20px' } }); this.currentPage = overviewPage; this.currentTab = { div: overviewNavItemDiv, dot: undefined, text: overviewNavItemText }; this.currentTab.text.updateCssStyles(selectedTabCss); @@ -180,7 +180,7 @@ export class BdcDashboard { this.currentTab.text.updateCssStyles(unselectedTabCss); } this.mainAreaContainer.removeItem(this.currentPage); - this.mainAreaContainer.addItem(tabPageMapping.servicePage); + this.mainAreaContainer.addItem(tabPageMapping.servicePage, { CSSStyles: { 'margin': '0 20px 0 20px' } }); this.currentPage = tabPageMapping.servicePage; this.currentTab = tabPageMapping.navTab; this.currentTab.text.updateCssStyles(selectedTabCss);