Automatically expand search suggestions if there is only one page of results
This commit is contained in:
parent
8d61ca4ee3
commit
48dbc8e978
|
@ -74,7 +74,7 @@ static inline Element generate_header(const httplib::Request& req, const Config&
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
if (!search_suggestions.empty()) {
|
if (!search_suggestions.empty()) {
|
||||||
header.nodes.push_back(generate_search_suggestions(req, config, tags, search_suggestions, search_results.illusts.total_illusts == 0));
|
header.nodes.push_back(generate_search_suggestions(req, config, tags, search_suggestions, search_results.illusts.total_pages <= 1));
|
||||||
}
|
}
|
||||||
header.nodes.push_back(Element("br"));
|
header.nodes.push_back(Element("br"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue