change notebook grid actions orientation to horizontal (#11870)

* change actions orientation to horizontal

* add missing import
This commit is contained in:
Lucy Zhang
2020-08-19 14:42:06 -07:00
committed by GitHub
parent de3c6e6e99
commit fefb47da83

View File

@@ -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<any> {
@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);