Slim mode stays in state; Filter field on mobile

This commit is contained in:
James Barnsley
2017-08-22 21:15:09 +12:00
parent dc42024bfe
commit 35eb18dac5
3 changed files with 10 additions and 5 deletions

View File

@ -100,12 +100,12 @@ class App extends React.Component{
var height = Math.max(document.documentElement.clientHeight, window.innerHeight || 0)
if (width <= 800){
if (!global.slim_mode){
global.slim_mode = true
if (!this.props.slim_mode){
this.props.uiActions.setSlimMode(true)
}
} else {
if (this.props.slim_mode){
global.slim_mode = false
this.props.uiActions.setSlimMode(false)
}
}
}