## Problem The model selection dropdown doesn't scroll when there are many models available, causing the list to extend beyond the viewport and become unusable. ## Solution - Added `max-h-100 overflow-y-auto` classes to the DropdownMenuContent This closes (#1279) <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds vertical scrolling to the model selection dropdown so long lists don’t overflow the viewport. Applies max height and overflow-y auto to DropdownMenuSubContent across provider, Ollama, and LM Studio menus to keep the list usable. <!-- End of auto-generated description by cubic. -->
This commit is contained in:
committed by
GitHub
parent
a547aa3ac1
commit
de2cc2b48f
@@ -313,7 +313,7 @@ export function ModelPicker() {
|
||||
</span>
|
||||
</div>
|
||||
</DropdownMenuSubTrigger>
|
||||
<DropdownMenuSubContent className="w-56">
|
||||
<DropdownMenuSubContent className="w-56 max-h-100 overflow-y-auto">
|
||||
<DropdownMenuLabel>
|
||||
{providerDisplayName + " Models"}
|
||||
</DropdownMenuLabel>
|
||||
@@ -485,7 +485,7 @@ export function ModelPicker() {
|
||||
)}
|
||||
</div>
|
||||
</DropdownMenuSubTrigger>
|
||||
<DropdownMenuSubContent className="w-56">
|
||||
<DropdownMenuSubContent className="w-56 max-h-100 overflow-y-auto">
|
||||
<DropdownMenuLabel>Ollama Models</DropdownMenuLabel>
|
||||
<DropdownMenuSeparator />
|
||||
|
||||
@@ -566,7 +566,7 @@ export function ModelPicker() {
|
||||
)}
|
||||
</div>
|
||||
</DropdownMenuSubTrigger>
|
||||
<DropdownMenuSubContent className="w-56">
|
||||
<DropdownMenuSubContent className="w-56 max-h-100 overflow-y-auto">
|
||||
<DropdownMenuLabel>LM Studio Models</DropdownMenuLabel>
|
||||
<DropdownMenuSeparator />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user