Merge pull request #3864 from continuedev/dallin/model-selector

Model Selector - add scrolling for many models
This commit is contained in:
Nate Sesti 2025-01-27 16:46:57 -08:00 • committed by GitHub
commit e8ffd9799f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -332,7 +332,9 @@ function ModelSelect() {
$showabove={showAbove}
className="z-50 max-w-[90vw]"
>
<div className={`max-h-[${MAX_HEIGHT_PX}px]`}>
<div
className={`max-h-[${MAX_HEIGHT_PX}px] no-scrollbar overflow-y-scroll`}
>
{sortedOptions.map((option, idx) => (
<ModelOption
option={option}
@ -345,6 +347,8 @@ function ModelSelect() {
</div>
<div className="mt-auto">
<Divider className="!my-0" />
{selectedProfileId === "local" && (
<>
<StyledListboxOption