mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 21:10:38 +03:00
Fix table NoDataComponent layout
This commit is contained in:
parent
5e0a8b7b7f
commit
3a67a1ae6b
|
@ -108,10 +108,10 @@ export default function DataTable<TData extends RowData>({
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='w-fit'>
|
<div className='w-full'>
|
||||||
{isEmpty && (noDataComponent ?? <DefaultNoData />)}
|
{isEmpty && (noDataComponent ?? <DefaultNoData />)}
|
||||||
|
|
||||||
{!isEmpty &&
|
{!isEmpty &&
|
||||||
|
<div className='flex flex-col items-stretch'>
|
||||||
<table>
|
<table>
|
||||||
<thead
|
<thead
|
||||||
className='clr-app shadow-border'
|
className='clr-app shadow-border'
|
||||||
|
@ -200,14 +200,14 @@ export default function DataTable<TData extends RowData>({
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
))}
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>}
|
</table>
|
||||||
|
|
||||||
{!isEmpty && enablePagination &&
|
{enablePagination &&
|
||||||
<PaginationTools
|
<PaginationTools
|
||||||
table={tableImpl}
|
table={tableImpl}
|
||||||
paginationOptions={paginationOptions}
|
paginationOptions={paginationOptions}
|
||||||
onChangePaginationOption={onChangePaginationOption}
|
onChangePaginationOption={onChangePaginationOption}
|
||||||
/>
|
/>}
|
||||||
}
|
</div>}
|
||||||
</div>);
|
</div>);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user