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

View File

@ -48,6 +48,7 @@
.fa {
top: 17px;
left: 24px;
color: $white !important;
}
input {

View File

@ -32,15 +32,19 @@
@include responsive( $bp_medium ){
.intro {
text-align: center;
.thumbnail {
float: none;
margin: 0 auto 20px;
}
.liner {
padding: 15vh 10px 0;
}
h1 {
padding-top: 0;
font-size: 3rem;
line-height: 3rem;
}
}
}