fix(search): remove empty space in search modal#674
fix(search): remove empty space in search modal#674shivxmsharma wants to merge 4 commits intonodejs:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
Updates the SearchBox CSS layout in the web UI generator, aiming to improve how the results area and footer behave inside the search modal.
Changes:
- Replaced
flex-grow: 1withmin-height: 0on the search results container. - Added
margin-top: autoto the footer to push it toward the bottom of the modal.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| .searchResultsContainer { | ||
| display: flex; | ||
| flex-grow: 1; | ||
| min-height: 0; |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #674 +/- ##
=======================================
Coverage 74.74% 74.74%
=======================================
Files 146 146
Lines 13255 13255
Branches 960 960
=======================================
Hits 9907 9907
Misses 3342 3342
Partials 6 6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I'm not 100% sure, like I said in the issue, why don't you try, test, repeat |
Hey @avivkeller, I did more digging and traced the actual root cause — it's not in The empty space comes from /* packages/ui-components — Search/Results/Empty */
.noResultsWrapper {
height: 100%;
padding-top: 2.5rem;
padding-bottom: 7.75rem; /* ← 124px, this is the empty space */
}That large I've reverted the changes on this PR since they don't fix the root cause. Going to open a fix directly in |



Description
The
.searchResultsContainerwas missingmin-height: 0, which causedoverflow-y: autoto be ineffective. Flex items default tomin-height: auto, meaning the container expanded to show all contentinstead of constraining its height and allowing internal scrolling.
Changes:
flex-grow: 1withflex: 1(setsflex-basisto0,ensuring space is distributed from zero rather than from content size)
min-height: 0to allow the container to shrink below itscontent size, enabling
overflow-y: autoto work correctlymargin-top: autoto.footerto keep it pinned at the bottomof the modal
Validation
Open the search modal and type a query that returns many results. The
results list should now scroll within the modal rather than expanding
the modal indefinitely. Footer remains pinned at the bottom on both
mobile and desktop viewports.
Related Issues
Fixes #670
Check List
node --run testand all tests passed.node --run format&node --run lint.