mirror of
https://github.com/apache/superset.git
synced 2026-05-12 11:25:56 +00:00
fix(Explore): Cell height and spacing for Data panel (#15821)
* Fix height and spacing * Remove unnecessary padding
This commit is contained in:
@@ -101,6 +101,10 @@ const CollapseWrapper = styled.div`
|
||||
}
|
||||
`;
|
||||
|
||||
const Error = styled.pre`
|
||||
margin-top: ${({ theme }) => `${theme.gridUnit * 4}px`};
|
||||
`;
|
||||
|
||||
export const DataTablesPane = ({
|
||||
queryFormData,
|
||||
tableSectionHeight,
|
||||
@@ -263,7 +267,7 @@ export const DataTablesPane = ({
|
||||
return <Loading />;
|
||||
}
|
||||
if (error[type]) {
|
||||
return <pre>{error[type]}</pre>;
|
||||
return <Error>{error[type]}</Error>;
|
||||
}
|
||||
if (data[type]) {
|
||||
if (data[type]?.length === 0) {
|
||||
@@ -279,11 +283,12 @@ export const DataTablesPane = ({
|
||||
className="table-condensed"
|
||||
isPaginationSticky
|
||||
showRowCount={false}
|
||||
small
|
||||
/>
|
||||
);
|
||||
}
|
||||
if (errorMessage) {
|
||||
return <pre>{errorMessage}</pre>;
|
||||
return <Error>{errorMessage}</Error>;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user