Unverified Commit d8d4cb82 authored by Allison Suarez Miranda's avatar Allison Suarez Miranda Committed by GitHub

fix: added max-width style property with 560px value (#507)

* added max-width style property with 560px value

* fixed align on search bar

* implemented Tamika's feedback on nesting classes and rename class for nav-search-bar
parent f7de1e81
......@@ -62,7 +62,7 @@ export class NavBar extends React.Component<NavBarProps> {
renderSearchBar = () => {
if (this.props.location.pathname !== '/') {
return (
<div className="search-bar">
<div className="nav-search-bar">
<SearchBar size="small" />
</div>
);
......
......@@ -77,11 +77,17 @@ $avatar-container-size: 40px;
margin-right: 12px;
}
.search-bar {
.nav-search-bar {
flex-grow: 1;
margin: auto $spacer-2 auto auto;
.search-bar {
max-width: 560px;
margin: auto 0px auto auto;
}
}
.logo-icon {
margin-right: $spacer-2;
max-height: 32px;
......
......@@ -190,7 +190,7 @@ export class SearchBar extends React.Component<SearchBarProps, SearchBarState> {
}`;
return (
<div id="search-bar" ref={this.refToSelf}>
<div id="search-bar" className="search-bar" ref={this.refToSelf}>
<form
id="search-bar-form"
className="search-bar-form"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment