From fefb47da83d6271e506117b32001cbd403d75c2d Mon Sep 17 00:00:00 2001 From: Lucy Zhang Date: Wed, 19 Aug 2020 14:42:06 -0700 Subject: [PATCH] change notebook grid actions orientation to horizontal (#11870) * change actions orientation to horizontal * add missing import --- .../contrib/notebook/browser/outputs/gridOutput.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sql/workbench/contrib/notebook/browser/outputs/gridOutput.component.ts b/src/sql/workbench/contrib/notebook/browser/outputs/gridOutput.component.ts index 22fcd55ca9..c5da1feace 100644 --- a/src/sql/workbench/contrib/notebook/browser/outputs/gridOutput.component.ts +++ b/src/sql/workbench/contrib/notebook/browser/outputs/gridOutput.component.ts @@ -39,6 +39,7 @@ import { ToggleableAction } from 'sql/workbench/contrib/notebook/browser/noteboo import { IInsightOptions } from 'sql/workbench/common/editor/query/chartState'; import { NotebookChangeType } from 'sql/workbench/services/notebook/common/contracts'; import { URI } from 'vs/base/common/uri'; +import { ActionsOrientation } from 'vs/base/browser/ui/actionbar/actionbar'; @Component({ selector: GridOutputComponent.SELECTOR, @@ -135,7 +136,7 @@ class DataResourceTable extends GridTableBase { @IUntitledTextEditorService untitledEditorService: IUntitledTextEditorService, @IConfigurationService configurationService: IConfigurationService ) { - super(state, createResultSet(source), undefined, contextMenuService, instantiationService, editorService, untitledEditorService, configurationService); + super(state, createResultSet(source), { actionOrientation: ActionsOrientation.HORIZONTAL }, contextMenuService, instantiationService, editorService, untitledEditorService, configurationService); this._gridDataProvider = this.instantiationService.createInstance(DataResourceDataProvider, source, this.resultSet, this.cellModel.notebookModel.notebookUri.toString()); this._chart = this.instantiationService.createInstance(ChartView, false);