Minor UI fixes

This commit is contained in:
IRBorisov 2023-10-08 18:45:15 +03:00
parent 2e5317660d
commit 5e0a8b7b7f
2 changed files with 5 additions and 5 deletions

View File

@ -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 &&

View File

@ -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'