This is an automated email from the ASF dual-hosted git repository. suddjian pushed a commit to branch fix/long-table-names in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
commit 19cb56169497113c17959386cf61d717a23f0d74 Author: David Aaron Suddjian <[email protected]> AuthorDate: Mon Aug 3 23:35:35 2020 -0700 widen the autocomplete menu for table names --- .../src/SqlLab/components/AceEditorWrapper/AceStyles.less | 3 +++ .../{AceEditorWrapper.tsx => AceEditorWrapper/index.tsx} | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/superset-frontend/src/SqlLab/components/AceEditorWrapper/AceStyles.less b/superset-frontend/src/SqlLab/components/AceEditorWrapper/AceStyles.less new file mode 100644 index 0000000..6b8cc6f --- /dev/null +++ b/superset-frontend/src/SqlLab/components/AceEditorWrapper/AceStyles.less @@ -0,0 +1,3 @@ +.ace_editor.ace_autocomplete { + width: 520px; +} diff --git a/superset-frontend/src/SqlLab/components/AceEditorWrapper.tsx b/superset-frontend/src/SqlLab/components/AceEditorWrapper/index.tsx similarity index 97% rename from superset-frontend/src/SqlLab/components/AceEditorWrapper.tsx rename to superset-frontend/src/SqlLab/components/AceEditorWrapper/index.tsx index 370cdbc..ea63414 100644 --- a/superset-frontend/src/SqlLab/components/AceEditorWrapper.tsx +++ b/superset-frontend/src/SqlLab/components/AceEditorWrapper/index.tsx @@ -22,14 +22,15 @@ import 'brace/mode/sql'; import 'brace/theme/github'; import 'brace/ext/language_tools'; import ace from 'brace'; -import { areArraysShallowEqual } from '../../reduxUtils'; -import sqlKeywords from '../utils/sqlKeywords'; +import { areArraysShallowEqual } from 'src/reduxUtils'; +import sqlKeywords from '../../utils/sqlKeywords'; import { SCHEMA_AUTOCOMPLETE_SCORE, TABLE_AUTOCOMPLETE_SCORE, COLUMN_AUTOCOMPLETE_SCORE, SQL_FUNCTIONS_AUTOCOMPLETE_SCORE, -} from '../constants'; +} from '../../constants'; +import './AceStyles.less'; const langTools = ace.acequire('ace/ext/language_tools');
