Skip to content

Commit

Permalink
fix(ui): fix search value null bug
Browse files Browse the repository at this point in the history
  • Loading branch information
duanyytop committed Jun 13, 2019
1 parent bac010b commit 7441797
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 1 addition & 3 deletions web/src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,7 @@ export default ({ search = true }: { search?: boolean }) => {
</div>
)}
</HeaderMobileDiv>
<HeaderSearchPanel>
<Search />
</HeaderSearchPanel>
<HeaderSearchPanel>{search && <Search />}</HeaderSearchPanel>
</HeaderMobilePanel>
)
}
3 changes: 3 additions & 0 deletions web/src/components/Search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const SearchPanel = styled.div`
font-size: 16px;
@media (max-width: 700px) {
font-size: 12px;
width: 80%;
padding-left: 10px;
padding-right: 20px;
}
padding-left: 20px;
padding-right: 50px;
Expand Down
6 changes: 6 additions & 0 deletions web/src/pages/SearchFail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ const SearchContent = styled.div`
margin: 0 auto;
margin-top: 39px;
text-align: center;
@media (max-width: 700px) {
max-width: 80%;
font-size: 12px;
margin-top: 15px;
}
`

export default (props: React.PropsWithoutRef<RouteComponentProps>) => {
Expand Down

0 comments on commit 7441797

Please sign in to comment.