merged suggestion dropdown

pull/7/head
Nick Quidas 2022-03-04 11:47:43 -05:00
parent a93584641c
commit 5a5b44d2bc
3 changed files with 2 additions and 21 deletions

View File

@ -289,26 +289,6 @@ footer {
} }
.section-results {
display:inline;
padding: 10px 40px;
justify-content: space-between;
flex-wrap: wrap;
/* padding-left: 1em;
padding-right: 1em;
justify-content: center;
align-items: flex-start;
display: flex; */
}
.section-results button {
border-radius: 0;
box-shadow: none;
border-style: solid;
border-width: 1px;
border-color: #222222;
}
.sect-drop { .sect-drop {
box-sizing: border-box; box-sizing: border-box;
width: 10rem; width: 10rem;

View File

@ -267,6 +267,7 @@ function App() {
<SearchBar changeParameter={changeParameter} /> <SearchBar changeParameter={changeParameter} />
<LangDropdown changeParameter={changeParameter} data={data} /> <LangDropdown changeParameter={changeParameter} data={data} />
<SectDropdown className="sect-drop" changeParameter={changeParameter} data={data} value={searchParams['section'] || "allSects"}/> <SectDropdown className="sect-drop" changeParameter={changeParameter} data={data} value={searchParams['section'] || "allSects"}/>
<h3>Suggestions based on your search</h3>
<div className="search-results section-results">{sectionResultsList}</div> <div className="search-results section-results">{sectionResultsList}</div>
</div> </div>
</header> </header>

View File

@ -55,7 +55,7 @@ function SectDropdown({ changeParameter, data, value}) {
return ( return (
<select value={value} className="sect-drop" onChange={handleChange} name="sections" id="sections"> <select value={value} className="sect-drop" onChange={handleChange} name="sections" id="sections">
<option key="allSects" value=""> <option key="allSects" value="">
Section Results Topics
</option> </option>
{options} {options}
</select> </select>