Skip to content

Commit

Permalink
feat: highlight selected model families
Browse files Browse the repository at this point in the history
  • Loading branch information
Neet-Nestor committed Dec 10, 2024
1 parent 6833487 commit d182c85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/components/model-select.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ input.input[type=text] {
}
}
}

.selected-model-family {
border-color: var(--primary);
background-color: var(--second);
}
}

.model-icon {
Expand Down
2 changes: 1 addition & 1 deletion app/components/model-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const ModelSelect: React.FC<ModelSearchProps> = ({
{Icon ? <Icon /> : <Cpu />}
</div>
}
className={style["model-family-button"]}
className={`${style["model-family-button"]}${selectedFamilies.includes(key) ? " " + style["selected-model-family"] : ""}`}
/>
))}
</div>
Expand Down

0 comments on commit d182c85

Please sign in to comment.