Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions apps/web/src/components/chat/ModelListRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const ModelListRow = memo(function ModelListRow(props: {
{/* The logo is decorative, so name the provider for screen readers. */}
<span className="sr-only">, {props.providerDisplayName}</span>
</div>
{props.isSelected ? <CheckIcon className="size-3.5 shrink-0" aria-hidden="true" /> : null}
{props.subProvider ? (
<span className="min-w-0 shrink truncate text-xs text-muted-foreground/70">
{props.subProvider}
Expand All @@ -100,14 +101,12 @@ export const ModelListRow = memo(function ModelListRow(props: {
</div>

<div className="flex shrink-0 items-center gap-1.5">
{props.jumpLabel ? <Kbd>{props.jumpLabel}</Kbd> : null}
<Tooltip>
<TooltipTrigger
render={
<Button
size="icon-xs"
variant="ghost-muted"
className="-mr-1 shrink-0"
onClick={(event) => {
event.stopPropagation();
props.onToggleFavorite(props.instanceId, props.slug);
Expand All @@ -133,11 +132,7 @@ export const ModelListRow = memo(function ModelListRow(props: {
{props.isFavorite ? "Remove from favorites" : "Add to favorites"}
</TooltipPopup>
</Tooltip>
{/* Last, and always reserved, so stars and the check keep fixed columns. */}
<CheckIcon
className={cn("size-3.5", !props.isSelected && "invisible")}
aria-hidden="true"
/>
{props.jumpLabel ? <Kbd>{props.jumpLabel}</Kbd> : null}
</div>
</ComboboxItem>
);
Expand Down
Loading