mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +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 (
|
||||
<div className='w-fit'>
|
||||
<div className='w-full'>
|
||||
{isEmpty && (noDataComponent ?? <DefaultNoData />)}
|
||||
|
||||
{!isEmpty &&
|
||||
<div className='flex flex-col items-stretch'>
|
||||
<table>
|
||||
<thead
|
||||
className='clr-app shadow-border'
|
||||
|
@ -200,14 +200,14 @@ export default function DataTable<TData extends RowData>({
|
|||
</tr>
|
||||
))}
|
||||
</tfoot>
|
||||
</table>}
|
||||
</table>
|
||||
|
||||
{!isEmpty && enablePagination &&
|
||||
{enablePagination &&
|
||||
<PaginationTools
|
||||
table={tableImpl}
|
||||
paginationOptions={paginationOptions}
|
||||
onChangePaginationOption={onChangePaginationOption}
|
||||
/>
|
||||
}
|
||||
/>}
|
||||
</div>}
|
||||
</div>);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user