diff --git a/superset-frontend/src/components/TableView/TableView.tsx b/superset-frontend/src/components/TableView/TableView.tsx index 6270ab2c1..ff3fee1cb 100644 --- a/superset-frontend/src/components/TableView/TableView.tsx +++ b/superset-frontend/src/components/TableView/TableView.tsx @@ -56,15 +56,14 @@ const EmptyWrapper = styled.div` `; const TableViewStyles = styled.div<{ - hasPagination?: boolean; isPaginationSticky?: boolean; scrollTable?: boolean; small?: boolean; }>` - ${({ hasPagination, scrollTable, theme }) => + ${({ scrollTable, theme }) => scrollTable && ` - height: ${hasPagination ? '300px' : '380px'}; + flex: 1 1 auto; margin-bottom: ${theme.gridUnit * 4}px; overflow: auto; `} @@ -196,7 +195,7 @@ const TableView = ({ return ( <> - + = ({ }; return ( - = ({ )} {confirmChange && <>{CONFIRM_WARNING_MESSAGE}} - + ); };