fix: Remove gap from SQLLab results bottom (#19138)

* Remove gap from SQLLab results bottom

* resolve comment
This commit is contained in:
Smart-Codi
2022-03-24 18:53:43 -04:00
committed by GitHub
parent a2bb91243a
commit 8947eb9680

View File

@@ -94,6 +94,7 @@ const StyledPane = styled.div`
}
`;
const EXTRA_HEIGHT_RESULTS = 24; // we need extra height in RESULTS tab. because the height from props was calculated based on PREVIEW tab.
const StyledEmptyStateWrapper = styled.div`
height: 100%;
.ant-empty-image img {
@@ -164,7 +165,7 @@ export default function SouthPane({
query={latestQuery}
actions={actions}
user={user}
height={innerTabContentHeight}
height={innerTabContentHeight + EXTRA_HEIGHT_RESULTS}
database={databases[latestQuery.dbId]}
displayLimit={displayLimit}
defaultQueryLimit={defaultQueryLimit}