put search bar on top for mobile

This commit is contained in:
Kim, Jimin 2021-08-09 11:53:46 +09:00
parent e96452df3f
commit a200a71abc

View file

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