mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 21:10:38 +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 (
|
return (
|
||||||
<div className='w-full'>
|
<div className='w-fit'>
|
||||||
{isEmpty && (noDataComponent ?? <DefaultNoData />)}
|
{isEmpty && (noDataComponent ?? <DefaultNoData />)}
|
||||||
|
|
||||||
{!isEmpty &&
|
{!isEmpty &&
|
||||||
|
|
|
@ -64,18 +64,18 @@ function ViewLibrary({ items, resetQuery: cleanQuery }: ViewLibraryProps) {
|
||||||
columnHelper.accessor('title', {
|
columnHelper.accessor('title', {
|
||||||
id: 'title',
|
id: 'title',
|
||||||
header: 'Название',
|
header: 'Название',
|
||||||
size: 1000,
|
size: 2000,
|
||||||
minSize: 400,
|
minSize: 400,
|
||||||
maxSize: 1000,
|
maxSize: 2000,
|
||||||
enableSorting: true,
|
enableSorting: true,
|
||||||
sortingFn: 'text'
|
sortingFn: 'text'
|
||||||
}),
|
}),
|
||||||
columnHelper.accessor(item => item.owner ?? 0, {
|
columnHelper.accessor(item => item.owner ?? 0, {
|
||||||
id: 'owner',
|
id: 'owner',
|
||||||
header: 'Владелец',
|
header: 'Владелец',
|
||||||
size: 300,
|
size: 600,
|
||||||
minSize: 200,
|
minSize: 200,
|
||||||
maxSize: 300,
|
maxSize: 600,
|
||||||
cell: props => getUserLabel(props.cell.getValue()),
|
cell: props => getUserLabel(props.cell.getValue()),
|
||||||
enableSorting: true,
|
enableSorting: true,
|
||||||
sortingFn: 'text'
|
sortingFn: 'text'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user