diff --git a/superset-frontend/src/SqlLab/components/SqlEditor/index.tsx b/superset-frontend/src/SqlLab/components/SqlEditor/index.tsx index 1a11eb90c56d..547f2850e4f7 100644 --- a/superset-frontend/src/SqlLab/components/SqlEditor/index.tsx +++ b/superset-frontend/src/SqlLab/components/SqlEditor/index.tsx @@ -168,6 +168,9 @@ const StyledToolbar = styled.div` const StyledSidebar = styled.div` padding: ${({ theme }) => theme.sizeUnit * 2.5}px; + height: 100%; + display: flex; + flex-direction: column; `; const StyledSqlEditor = styled.div` diff --git a/superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.tsx b/superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.tsx index 93bc2fd5a022..a6667270ec38 100644 --- a/superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.tsx +++ b/superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.tsx @@ -47,7 +47,6 @@ import TableElement from '../TableElement'; export interface SqlEditorLeftBarProps { queryEditorId: string; - height?: number; database?: DatabaseObject; } @@ -72,7 +71,6 @@ const LeftBarStyles = styled.div` const SqlEditorLeftBar = ({ database, queryEditorId, - height = 500, }: SqlEditorLeftBarProps) => { const allSelectedTables = useSelector( ({ sqlLab }) => @@ -171,7 +169,6 @@ const SqlEditorLeftBar = ({ }; const shouldShowReset = window.location.search === '?reset=1'; - const tableMetaDataHeight = height - 130; // 130 is the height of the selects above const handleCatalogChange = useCallback( (catalog: string | null) => { @@ -228,22 +225,16 @@ const SqlEditorLeftBar = ({ />
-
- {tables.map(table => ( - expanded) - .map(({ id }) => id)} - onChange={onToggleTable} - /> - ))} -
+ {tables.map(table => ( + expanded) + .map(({ id }) => id)} + onChange={onToggleTable} + /> + ))}
{shouldShowReset && (