mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
Minor UI fixes
This commit is contained in:
parent
2e5317660d
commit
5e0a8b7b7f
|
@ -108,7 +108,7 @@ export default function DataTable<TData extends RowData>({
|
|||
}
|
||||
|
||||
return (
|
||||
<div className='w-full'>
|
||||
<div className='w-fit'>
|
||||
{isEmpty && (noDataComponent ?? <DefaultNoData />)}
|
||||
|
||||
{!isEmpty &&
|
||||
|
|
|
@ -64,18 +64,18 @@ function ViewLibrary({ items, resetQuery: cleanQuery }: ViewLibraryProps) {
|
|||
columnHelper.accessor('title', {
|
||||
id: 'title',
|
||||
header: 'Название',
|
||||
size: 1000,
|
||||
size: 2000,
|
||||
minSize: 400,
|
||||
maxSize: 1000,
|
||||
maxSize: 2000,
|
||||
enableSorting: true,
|
||||
sortingFn: 'text'
|
||||
}),
|
||||
columnHelper.accessor(item => item.owner ?? 0, {
|
||||
id: 'owner',
|
||||
header: 'Владелец',
|
||||
size: 300,
|
||||
size: 600,
|
||||
minSize: 200,
|
||||
maxSize: 300,
|
||||
maxSize: 600,
|
||||
cell: props => getUserLabel(props.cell.getValue()),
|
||||
enableSorting: true,
|
||||
sortingFn: 'text'
|
||||
|
|
Loading…
Reference in New Issue
Block a user