Skip to content

Commit

Permalink
Merge pull request #3864 from continuedev/dallin/model-selector
Browse files Browse the repository at this point in the history
Model Selector - add scrolling for many models
  • Loading branch information
sestinj authored Jan 28, 2025
2 parents 98c9f9f + d787866 commit e8ffd97
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gui/src/components/modelSelection/ModelSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -345,6 +347,8 @@ function ModelSelect() {
</div>

<div className="mt-auto">
<Divider className="!my-0" />

{selectedProfileId === "local" && (
<>
<StyledListboxOption
Expand Down

0 comments on commit e8ffd97

Please sign in to comment.