Unify whitespace on search pages with no results#10152
Unify whitespace on search pages with no results#10152cdrini merged 7 commits intointernetarchive:masterfrom
Conversation
RayBB
left a comment
There was a problem hiding this comment.
@purohitamann this could be a potential solution but adds a lot of unneeded whitespace and doesn't deal with the root cause of there being extra whitespace on some pages like authors and subjects.
As described in the original issue.
We should unify them to all match the heights on the "all" and "lists" pages.
I'd recommend reverting the changes to v2.less and instead looking at the actual search results pages to understand where the extra space is coming from and remove it.
noted. will make the necessary changes! |
This reverts commit ffd6847.
|
@RayBB, I think this should do the job. I added a conditional check for empty author list results and subjects. let me know if anything needs to be changed. Thanks! |
|
Can you please provide a short video of how the pages look now? |
|
@purohitamann the subjects/lists are still different height than the authors/search inside. |
|
that's interesting! I will look into that and respond with a more effective solution. |
|
If you think it is necessary to change the clearfix class, please check if it is used anywhere else and is changing it. Otherwise, you can try removing the clearfix. Please remove other changes if they are unnecessary. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #10152 +/- ##
==========================================
+ Coverage 17.12% 17.44% +0.31%
==========================================
Files 89 89
Lines 4752 4792 +40
Branches 831 848 +17
==========================================
+ Hits 814 836 +22
- Misses 3428 3436 +8
- Partials 510 520 +10 ☔ View full report in Codecov by Sentry. |
|
Removed the unnecessary clearfix div from the Pager component, as well as from the author and subject templates, to eliminate extra whitespace issues. reverted the padding configuration for the clearfix class to ensure other valid invocations across the codebase continue to work as expected without introducing layout inconsistencies. |
|
@RayBB I’ve noticed that the Inside search page currently lacks a loading indicator. Should this be addressed to improve the user experience? |
|
@purohitamann good observation but a loading indicator isn't needed on that page because it will show the search inside results right away and doesn't need to load anything. |
cdrini
left a comment
There was a problem hiding this comment.
Code lgtm and @RayBB tested. Awesome, thank you @purohitamann !




Closes #10067 Unify whitespace on search results pages (when no search results).
Fix - This PR ensures consistent whitespace when no search results are found on the search results pages.
Technical
Adjusted the CSS and layout for the "no search results" page state.
Verified styling consistency with other search result states.
Testing
To verify the fix:
Visit the search results page.
Enter a query that does not yield any results.
Observe the following:
Whitespace above and below the "no results" message is consistent.
The layout remains visually appealing and aligned.
Screenshot
Stakeholders
@RayBB