mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix math for auto-pageSize
This commit is contained in:
parent
11b87af302
commit
0d3e659dc9
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ export class AllListsTable extends React.Component<{}, State> {
|
|||
}
|
||||
|
||||
updatePageSize() {
|
||||
const pageSize = Math.floor((window.innerHeight - 450) / 42);
|
||||
const pageSize = Math.floor((window.innerHeight - 275.5) / 59);
|
||||
this.setState({
|
||||
pageSize: pageSize,
|
||||
pageSizeOptions: [5, 10, 20, 500, 2000, pageSize].sort((a, b) => a - b).map(String)
|
||||
|
|
|
|||
Loading…
Reference in a new issue