Skip to content

Commit f4ed723

Browse files
authored
Unify whitespace on search pages with no results (#10152)
1 parent bac41c7 commit f4ed723

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

openlibrary/macros/Pager.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
$else:
1717
$ first_page_in_set = max((page-half, 1))
1818
$ last_page_in_set = page+half
19-
<div class="clearfix"></div>
19+
2020
<div class="pagination">
2121
$if page != 1:
2222
<a href="$changequery(page=None)" class="ChoosePage" data-ol-link-track="Pager|First">&laquo;&nbsp;$_('First')</a>

openlibrary/templates/search/authors.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h1>$_("Search Authors")</h1>
5353
<div id="fulltext-search-suggestion" data-query="$q">
5454
$:macros.LoadingIndicator(_("Checking Search Inside matches"))
5555
</div>
56-
56+
$if results.num_found:
5757
<ul class="authorList list-books">
5858
$for doc in results.docs:
5959
$ n = doc['name']
@@ -78,5 +78,5 @@ <h1>$_("Search Authors")</h1>
7878

7979
$:macros.Pager(page, results.num_found, results_per_page)
8080
</div>
81-
<div class="clearfix"></div>
81+
8282
</div>

openlibrary/templates/search/subjects.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h1>
4646
<br>
4747
</strong>
4848

49-
$if q and not response.error:
49+
$if q and not response.error and response.num_found:
5050
<ul class="subjectList">
5151
$for doc in response.docs:
5252
$ n = doc['name']

0 commit comments

Comments
 (0)