[SqlLab] Fix a few UI issues (#4401)

1. tab alignment css
2. if tabs are more than 1 row, need to calculate content area height
3. clean up height calculation.
This commit is contained in:
Grace Guo
2018-02-13 10:18:09 -08:00
committed by GitHub
parent 4a6adb2f27
commit db24cef03b
6 changed files with 26 additions and 21 deletions

View File

@@ -15,7 +15,7 @@ describe('SqlEditor', () => {
latestQuery: queries[0],
tables: [table],
queries,
height: '',
getHeight: () => ('100px'),
editorQueries: [],
dataPreviewQueries: [],
};

View File

@@ -50,6 +50,7 @@ describe('TabbedSqlEditors', () => {
queryEditors: initialState.queryEditors,
tabHistory: initialState.tabHistory,
editorHeight: '',
getHeight: () => ('100px'),
};
const getWrapper = () => (
shallow(<TabbedSqlEditors {...mockedProps} />, {