Skip to content

Conversation

@ServeurpersoCom
Copy link
Collaborator

@ServeurpersoCom ServeurpersoCom commented Dec 4, 2025

Make sure to read the contributing guidelines before submitting a PR

Add a search field to the model selector / Improve mobile display / Simplify the code

PC1 PC2 Screenshot_20251206_140505_Kiwi Browser Screenshot_20251206_140527_Kiwi Browser

Close #17741

Copy link
Collaborator

@allozaur allozaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added few improvements in ServeurpersoCom/pull/3 ;)

allozaur and others added 4 commits December 5, 2025 13:35
Several structural & UX improvements for Models Selector component
Use Floating UI's auto-positioning with 50dvh height limit and proper
collision detection instead of forcing top positioning. Fixes overflow
on desktop and mobile keyboard issues
@ServeurpersoCom
Copy link
Collaborator Author

Now we're good @allozaur ! I adjusted the popover positioning to prevent it from overflowing the screen on both desktop and mobile. The main changes are removing the forced side="top" positioning to let Floating UI handle placement automatically, and using max-h-[50dvh] to ensure the menu adapts to the actual viewport size (including when the mobile keyboard is open). I also restructured the layout with proper flexbox so scrolling works correctly

Copy link
Collaborator

@allozaur allozaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just update the image/video demos in the description and we are good to go :)

@ServeurpersoCom
Copy link
Collaborator Author

If we are demanding in terms of UX ergonomics the search field could be placed below the list to minimize user input movement when the list is compressed during a search. (the popover can already "flip" above or below depending on the available space)

@allozaur
Copy link
Collaborator

allozaur commented Dec 6, 2025

If we are demanding in terms of UX ergonomics the search field could be placed below the list to minimize user input movement when the list is compressed during a search. (the popover can already "flip" above or below depending on the available space)

You are absolutely right

Place search at the 'near end' (closest to trigger) by swapping layout
with CSS flexbox order based on popover direction. Prevents input from
moving during typing as list shrinks
@ServeurpersoCom
Copy link
Collaborator Author

We're good! We'll look at this sidebar button issue separately!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

webui : model search functionality in the model selector

2 participants