tweak dynamic page size for mobile

ref #329
This commit is contained in:
Collin Barrett 2018-08-11 09:29:20 -05:00
parent 8e9cf40965
commit 2de78d1fde

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) {