fix: add scrollbar to search bar dropdown (#12362)
## Description Fixes a UI bug in the search bar dropdown where long lists were not scrollable after the latest update. Adds a `max-height` to the `<ul>` element and enables vertical scrolling. ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) ## How Has This Been Tested? - Verified scrolling works for long search results. - Confirmed layout remains correct on different screen sizes. - No other UI elements affected. ## Checklist - [x] Code follows project style guidelines - [x] Self-reviewed code - [x] Changes generate no new warnings Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
This commit is contained in:
@@ -15,7 +15,7 @@ defineProps({
|
|||||||
>
|
>
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</div>
|
</div>
|
||||||
<ul class="gap-2 grid reset-base list-none px-2">
|
<ul class="gap-2 grid reset-base list-none px-2 max-h-96 overflow-y-auto">
|
||||||
<slot />
|
<slot />
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user