Skip to content

Commit dbca82f

Browse files
committed
fix: increase pagination limit
1 parent aac8f0e commit dbca82f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/components/PaginatedTable/PaginatedTable.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface PaginatedTableProps<T, F> {
3737
keepCache?: boolean;
3838
}
3939

40-
const DEFAULT_PAGINATION_LIMIT = 10;
40+
const DEFAULT_PAGINATION_LIMIT = 20;
4141

4242
export const PaginatedTable = <T, F>({
4343
limit: chunkSize = DEFAULT_PAGINATION_LIMIT,
@@ -183,6 +183,7 @@ export const PaginatedTable = <T, F>({
183183
chunks.push(
184184
<tr
185185
style={{height: `${totalHeight}px`}}
186+
className="separator"
186187
key={`separator-${startIndex}-${i - 1}`}
187188
>
188189
<td colSpan={columns.length} style={{padding: 0, border: 'none'}} />

src/components/PaginatedTable/useScrollBasedChunks.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ interface ChunkState {
1818
shouldFetch: boolean;
1919
}
2020

21-
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
22-
2321
// Bad performance in Safari - reduce overscan counts
24-
const DEFAULT_RENDER_OVERSCAN = isSafari ? 0 : 0;
22+
const DEFAULT_RENDER_OVERSCAN = 2;
2523
const DEFAULT_FETCH_OVERSCAN = 4;
2624

2725
export const useScrollBasedChunks = ({

0 commit comments

Comments
 (0)