tweak dynamic page size for mobile

ref #329
This commit is contained in:
Collin M. Barrett 2018-08-11 09:29:20 -05:00
parent 2863cfc862
commit 5acb16d682

View file

@ -67,7 +67,9 @@ export class Home extends React.Component<RouteComponentProps<{}>, 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) {