Skip to content
Merged
Changes from 1 commit
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
18 changes: 14 additions & 4 deletions apps/web/src/components/settings/ProviderModelsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,21 @@ function ProviderModelRow({
</TooltipPopup>
</Tooltip>
<span className="flex min-w-0 items-baseline gap-2">
<span className={cn(nameClassName, "truncate")}>{model.name}</span>
{model.name !== model.slug ? (
<code className="truncate font-mono text-2xs text-muted-foreground/70">{model.slug}</code>
{/*
The name never shrinks, so the slug truncates first. The wrapper is the
only part that shrinks, which keeps the "custom" label out of the next column.
*/}
<span className="flex min-w-0 items-baseline gap-2 overflow-hidden">
<span className={cn(nameClassName, "max-w-full shrink-0 truncate")}>{model.name}</span>
{model.name !== model.slug ? (
<code className="truncate font-mono text-2xs text-muted-foreground/70">
{model.slug}
</code>
) : null}
</span>
{model.isCustom ? (
<span className="shrink-0 text-2xs text-muted-foreground/70">custom</span>
) : null}
{model.isCustom ? <span className="text-2xs text-muted-foreground/70">custom</span> : null}
</span>
<span className="text-2xs text-muted-foreground/70">
{capLabels.length > 0 ? (
Expand Down
Loading