mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
Update columns settings
This commit is contained in:
parent
8b1daefd1c
commit
5310e0c9ed
|
@ -108,9 +108,6 @@ function ArgumentsTab({ state, schema, partialUpdate }: ArgumentsTabProps) {
|
|||
argumentsHelper.accessor(arg => arg.typification, {
|
||||
id: 'type',
|
||||
header: 'Типизация',
|
||||
size: 150,
|
||||
minSize: 150,
|
||||
maxSize: 150,
|
||||
enableHiding: true,
|
||||
cell: props => (
|
||||
<div className={clsx('min-w-[9.3rem] max-w-[9.3rem]', 'text-sm break-words')}>{props.getValue()}</div>
|
||||
|
|
|
@ -73,11 +73,8 @@ function ViewLibrary({ items, resetQuery: cleanQuery }: ViewLibraryProps) {
|
|||
columnHelper.accessor('time_update', {
|
||||
id: 'time_update',
|
||||
header: 'Обновлена',
|
||||
size: 150,
|
||||
minSize: 150,
|
||||
maxSize: 150,
|
||||
cell: props => (
|
||||
<div className='text-sm min-w-[8.25rem]'>{new Date(props.cell.getValue()).toLocaleString(intl.locale)}</div>
|
||||
<div className='text-sm whitespace-nowrap'>{new Date(props.cell.getValue()).toLocaleString(intl.locale)}</div>
|
||||
),
|
||||
enableSorting: true,
|
||||
sortingFn: 'datetime',
|
||||
|
@ -90,7 +87,14 @@ function ViewLibrary({ items, resetQuery: cleanQuery }: ViewLibraryProps) {
|
|||
return (
|
||||
<>
|
||||
<div className='sticky top-[2.3rem] w-full'>
|
||||
<div className={clsx('z-pop', 'absolute top-[0.125rem] left-[0.25rem]', 'ml-3', 'flex gap-1')}>
|
||||
<div
|
||||
className={clsx(
|
||||
'z-pop', // prettier: split lines
|
||||
'absolute top-[0.125rem] left-[0.25rem]',
|
||||
'ml-3',
|
||||
'flex gap-1'
|
||||
)}
|
||||
>
|
||||
<HelpButton topic={HelpTopic.LIBRARY} className='max-w-[35rem]' offset={0} />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -72,11 +72,10 @@ function RSTable({ items, selected, setSelected, onEdit, onCreateNew }: RSTableP
|
|||
columnHelper.accessor(cst => labelCstTypification(cst), {
|
||||
id: 'type',
|
||||
header: 'Типизация',
|
||||
size: 150,
|
||||
minSize: 150,
|
||||
maxSize: 150,
|
||||
enableHiding: true,
|
||||
cell: props => <div className='text-sm min-w-[9.3rem] max-w-[9.3rem] break-words'>{props.getValue()}</div>
|
||||
cell: props => (
|
||||
<div className={clsx('min-w-[9.3rem] max-w-[9.3rem]', 'text-sm break-words')}>{props.getValue()}</div>
|
||||
)
|
||||
}),
|
||||
columnHelper.accessor(cst => cst.term_resolved || cst.term_raw || '', {
|
||||
id: 'term',
|
||||
|
|
|
@ -46,7 +46,7 @@ function ViewSubscriptions({ items }: ViewSubscriptionsProps) {
|
|||
size: 150,
|
||||
maxSize: 150,
|
||||
cell: props => (
|
||||
<div className='min-w-[8.25rem]'>{new Date(props.cell.getValue()).toLocaleString(intl.locale)}</div>
|
||||
<div className='text-sm whitespace-nowrap'>{new Date(props.cell.getValue()).toLocaleString(intl.locale)}</div>
|
||||
),
|
||||
enableSorting: true
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user