Merge pull request #1069 from ubavic/fix-datatable-size
fix: remove overflow
This commit is contained in:
commit
71b5133554
1 changed files with 2 additions and 2 deletions
|
|
@ -185,12 +185,12 @@ const DataTable = ({
|
||||||
<TBody className={classes.body}>
|
<TBody className={classes.body}>
|
||||||
{loading && <H4>Loading...</H4>}
|
{loading && <H4>Loading...</H4>}
|
||||||
{!loading && R.isEmpty(data) && <EmptyTable message={emptyText} />}
|
{!loading && R.isEmpty(data) && <EmptyTable message={emptyText} />}
|
||||||
{!R.isEmpty(data) && (
|
{!loading && !R.isEmpty(data) && (
|
||||||
<AutoSizer disableWidth>
|
<AutoSizer disableWidth>
|
||||||
{({ height }) => (
|
{({ height }) => (
|
||||||
<List
|
<List
|
||||||
// this has to be in a style because of how the component works
|
// this has to be in a style because of how the component works
|
||||||
style={{ overflow: 'inherit', outline: 'none' }}
|
style={{ outline: 'none' }}
|
||||||
{...props}
|
{...props}
|
||||||
height={loading ? 0 : height}
|
height={loading ? 0 : height}
|
||||||
width={width}
|
width={width}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue