limit page size options

This commit is contained in:
Collin M. Barrett 2019-08-25 07:45:03 -05:00
parent 523cd53e95
commit 0d3e59fd81

View file

@ -58,7 +58,7 @@ export class AllListsTable extends React.Component<{}, State> {
const pageSize = Math.floor((window.innerHeight - 211.5) / 56);
this.setState({
pageSize: pageSize,
pageSizeOptions: [5, 10, 20, 500, 2000, pageSize].sort((a, b) => a - b).map(String),
pageSizeOptions: [200, 2000, pageSize].sort((a, b) => a - b).map(String),
isNarrowWindow: window.innerWidth < 576 ? true : false
});
}