From 5acb16d682756a491fdf4a44364fae6002ecf6db Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 11 Aug 2018 09:29:20 -0500 Subject: [PATCH] tweak dynamic page size for mobile ref #329 --- src/FilterLists.Web/ClientApp/components/Home.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index f4278730d..9990c7ec8 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -67,7 +67,9 @@ export class Home extends React.Component, IHomeState> { } updatePageSize() { - this.setState({ pageSize: (window.innerHeight - (361)) / 52 }); + this.setState({ + pageSize: window.innerHeight - (window.innerWidth > 540 ? 361 : 320) / 52 + }); } private static renderTagline(state: IHomeState) {