Skip to content

Commit

Permalink
fix(sqllab): Replace margin style by gap on query results (#24772)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpark authored Jul 25, 2023
1 parent fc89718 commit 4a81284
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
11 changes: 8 additions & 3 deletions superset-frontend/src/SqlLab/components/ResultSet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ export interface ResultSetProps {
defaultQueryLimit: number;
}

const ResultContainer = styled.div`
display: flex;
flex-direction: column;
row-gap: ${({ theme }) => theme.gridUnit * 2}px;
`;

const ResultlessStyles = styled.div`
position: relative;
min-height: ${({ theme }) => theme.gridUnit * 25}px;
Expand Down Expand Up @@ -110,7 +116,6 @@ const ReturnedRows = styled.div`
const ResultSetControls = styled.div`
display: flex;
justify-content: space-between;
padding: ${({ theme }) => 2 * theme.gridUnit}px 0;
`;

const ResultSetButtons = styled.div`
Expand Down Expand Up @@ -494,7 +499,7 @@ const ResultSet = ({
? results.expanded_columns.map(col => col.column_name)
: [];
return (
<>
<ResultContainer>
{renderControls()}
{renderRowsReturned()}
{sql}
Expand All @@ -505,7 +510,7 @@ const ResultSet = ({
filterText={searchText}
expandedColumns={expandedColumns}
/>
</>
</ResultContainer>
);
}
if (data && data.length === 0) {
Expand Down
2 changes: 0 additions & 2 deletions superset-frontend/src/SqlLab/components/SouthPane/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ const StyledPane = styled.div<StyledPaneProps>`
}
}
.ant-tabs-tabpane {
display: flex;
flex-direction: column;
.scrollable {
overflow-y: auto;
}
Expand Down
1 change: 0 additions & 1 deletion superset-frontend/src/components/FilterableTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ const StyledFilterableTable = styled.div`
${({ theme }) => `
height: 100%;
overflow: hidden;
margin-top: ${theme.gridUnit * 2}px;
.ant-table-cell {
font-weight: ${theme.typography.weights.bold};
Expand Down

0 comments on commit 4a81284

Please sign in to comment.