Skip to content

Commit

Permalink
fix(ui): fix header search input max width bug
Browse files Browse the repository at this point in the history
  • Loading branch information
duanyytop committed Jun 11, 2019
1 parent ba76ccd commit 6295e45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/src/components/Search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import browserHistory from '../../routes/history'
import SearchLogo from '../../asserts/search.png'

const SearchPanel = styled.div`
max-width: ${(props: { width: number }) => (550 * props.width) / 1920}px;
margin: 0 auto;
width: 100%;
@media (max-width: 700px) {
Expand Down Expand Up @@ -119,7 +118,7 @@ const Search = ({ opacity = false, content }: { opacity?: boolean; content?: str
const searchPlaceholder = 'Block / Transaction / Address'

return (
<SearchPanel width={window.innerWidth}>
<SearchPanel>
{
<input
id="home__search__bar"
Expand Down

0 comments on commit 6295e45

Please sign in to comment.