Browse Source
Utils file has a function to get the number of rows to load depending on screen heightprometheus-integration
1 changed files with 6 additions and 0 deletions
@ -0,0 +1,6 @@ |
|||
export function getNumberOfRowsForScreen(height: number): number { |
|||
if (height < 550) { |
|||
return 10; |
|||
} |
|||
return Math.min(10 + Math.ceil((height - 550) / 20), 100); |
|||
} |
Loading…
Reference in new issue