diff --git a/web-ui/src/app/utils.ts b/web-ui/src/app/utils.ts new file mode 100644 index 0000000..d917bbb --- /dev/null +++ b/web-ui/src/app/utils.ts @@ -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); +}