WAT-2: Little layout changes for published look
This commit is contained in:
@@ -39,7 +39,7 @@ export default function WatchlistTable({
|
|||||||
id: 'category',
|
id: 'category',
|
||||||
accessorFn: (row) => row.categories[0],
|
accessorFn: (row) => row.categories[0],
|
||||||
filterVariant: 'select',
|
filterVariant: 'select',
|
||||||
size: 100,
|
size: 125,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'Summary',
|
header: 'Summary',
|
||||||
@@ -64,7 +64,7 @@ export default function WatchlistTable({
|
|||||||
),
|
),
|
||||||
minSize: 200,
|
minSize: 200,
|
||||||
size: 400,
|
size: 400,
|
||||||
maxSize: 600,
|
maxSize: 700,
|
||||||
filterSelectOptions: keywordOptions,
|
filterSelectOptions: keywordOptions,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -80,9 +80,11 @@ export default function WatchlistTable({
|
|||||||
const table = useMaterialReactTable({
|
const table = useMaterialReactTable({
|
||||||
columns,
|
columns,
|
||||||
data: items,
|
data: items,
|
||||||
layoutMode: 'grid-no-grow',
|
layoutMode: 'semantic',
|
||||||
filterFromLeafRows: true,
|
filterFromLeafRows: true,
|
||||||
enableFacetedValues: true,
|
enableFacetedValues: true,
|
||||||
|
enablePagination: false,
|
||||||
|
enableRowVirtualization: true,
|
||||||
state: {
|
state: {
|
||||||
isLoading: isLoadingItems,
|
isLoading: isLoadingItems,
|
||||||
showAlertBanner: isErrorLoading,
|
showAlertBanner: isErrorLoading,
|
||||||
@@ -91,7 +93,6 @@ export default function WatchlistTable({
|
|||||||
initialState: {
|
initialState: {
|
||||||
showColumnFilters: true,
|
showColumnFilters: true,
|
||||||
showGlobalFilter: true,
|
showGlobalFilter: true,
|
||||||
pagination: { pageSize: 100, pageIndex: 0 },
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user