Skip to content

Commit

Permalink
fix: fix grid view for no results page (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahdayan committed May 7, 2020
1 parent 19e8b98 commit 6797bae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -643,14 +643,10 @@

/* No Results */

.uni-NoResults {
display: grid;
grid-gap: 1rem;
}

.uni-NoResults-Title {
font-size: 1.2rem;
font-weight: normal;
margin-bottom: 1rem;
em {
font-style: normal;
font-weight: bold;
Expand Down
4 changes: 2 additions & 2 deletions src/components/NoResultsHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ const HitsPreview = connectHits(function MoreHits(props) {
<div className="ais-Hits">
<ol
className={[
'ais-Hits-list',
'ais-Hits-list uni-Hits',
view === 'grid' ? 'uni-Hits--gridView' : 'uni-Hits--listView',
].join(' ')}
>
{props.hits.map((hit) => (
<li key={hit.objectID} className="ais-Hits-item">
<li key={hit.objectID} className="ais-Hits-item uni-Hits-item">
<ConnectedHit hit={hit} />
</li>
))}
Expand Down

0 comments on commit 6797bae

Please sign in to comment.