Skip to content
Snippets Groups Projects
Commit 13d5af0b authored by danieldeng2's avatar danieldeng2
Browse files

Better mobile detection

parent 66f1f2d1
No related branches found
No related tags found
No related merge requests found
...@@ -126,7 +126,11 @@ class Timeline extends React.Component<TimelineProps, TimelineState> { ...@@ -126,7 +126,11 @@ class Timeline extends React.Component<TimelineProps, TimelineState> {
terms.includes(this.props.term) terms.includes(this.props.term)
); );
if (window.innerWidth <= 760 && this.state.showMobileOnSmallScreens) { if (
window.innerWidth <= 700 &&
window.innerHeight <= 900 &&
this.state.showMobileOnSmallScreens
) {
return ( return (
<TimelineMobile <TimelineMobile
term={this.props.term} term={this.props.term}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment