sforkowany z mirror/soapbox
Search: only show suggestions when not submitted
rodzic
23393710c7
commit
b32745a36d
|
@ -45,9 +45,9 @@ export default class SearchResults extends ImmutablePureComponent {
|
|||
|
||||
if (results.get('accounts') && results.get('accounts').size > 0) {
|
||||
searchResults = results.get('accounts').map(accountId => <AccountContainer key={accountId} id={accountId} />);
|
||||
} else if (suggestions && !suggestions.isEmpty()) {
|
||||
} else if (!submitted && suggestions && !suggestions.isEmpty()) {
|
||||
searchResults = suggestions.map(suggestion => <AccountContainer key={suggestion.get('account')} id={suggestion.get('account')} />);
|
||||
} else if (submitted) {
|
||||
} else if (loaded) {
|
||||
noResultsMessage = (
|
||||
<div className='empty-column-indicator'>
|
||||
<FormattedMessage
|
||||
|
|
|
@ -165,11 +165,6 @@ input.search__input {
|
|||
border-bottom: none;
|
||||
}
|
||||
|
||||
.search-page {
|
||||
height: 100%;
|
||||
min-height: 140px;
|
||||
}
|
||||
|
||||
.column {
|
||||
.search {
|
||||
padding: 10px 15px;
|
||||
|
|
Ładowanie…
Reference in New Issue