put search bar on top for mobile
This commit is contained in:
parent
e96452df3f
commit
a200a71abc
1 changed files with 12 additions and 2 deletions
|
@ -29,9 +29,10 @@ const StyledSearch = styled.div`
|
||||||
|
|
||||||
const StyledSearchContainer = styled.div`
|
const StyledSearchContainer = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
@media screen and (max-width: ${theming.size.screen_size2}) {
|
@media screen and (max-width: ${theming.size.screen_size2}) {
|
||||||
display: block;
|
flex-direction: column-reverse;
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
@ -44,6 +45,15 @@ const StyledSearchControlContainer = styled.div`
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
const StyledDateRange = styled(DateRange)`
|
||||||
|
width: 350px;
|
||||||
|
height: 350px;
|
||||||
|
|
||||||
|
@media screen and (max-width: ${theming.size.screen_size2}) {
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
`
|
||||||
|
|
||||||
function isDateInRange(
|
function isDateInRange(
|
||||||
dateToCompare: string,
|
dateToCompare: string,
|
||||||
from: string,
|
from: string,
|
||||||
|
@ -108,7 +118,7 @@ function _Search() {
|
||||||
<h1>Search</h1>
|
<h1>Search</h1>
|
||||||
|
|
||||||
<StyledSearchContainer>
|
<StyledSearchContainer>
|
||||||
<DateRange
|
<StyledDateRange
|
||||||
editableDateInputs={true}
|
editableDateInputs={true}
|
||||||
moveRangeOnFirstSelection={false}
|
moveRangeOnFirstSelection={false}
|
||||||
retainEndDateOnFirstSelection={true}
|
retainEndDateOnFirstSelection={true}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue