Skip to content

Commit 11bf4d8

Browse files
ilyaliaoclaude
andcommitted
fix(web): provider model names no longer get cut off by their slug
The model name and slug both truncated and shrank in proportion, so long names lost their distinguishing end while the slug kept half the row. The name now keeps its width and the slug takes what is left. A wrapper keeps the "custom" label from spilling into the capability column. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 6a6ebb2 commit 11bf4d8

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

‎apps/web/src/components/settings/ProviderModelsSection.tsx‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,11 +501,21 @@ function ProviderModelRow({
501501
</TooltipPopup>
502502
</Tooltip>
503503
<span className="flex min-w-0 items-baseline gap-2">
504-
<span className={cn(nameClassName, "truncate")}>{model.name}</span>
505-
{model.name !== model.slug ? (
506-
<code className="truncate font-mono text-2xs text-muted-foreground/70">{model.slug}</code>
504+
{/*
505+
The name never shrinks, so the slug truncates first. The wrapper is the
506+
only part that shrinks, which keeps the "custom" label out of the next column.
507+
*/}
508+
<span className="flex min-w-0 items-baseline gap-2 overflow-hidden">
509+
<span className={cn(nameClassName, "max-w-full shrink-0 truncate")}>{model.name}</span>
510+
{model.name !== model.slug ? (
511+
<code className="truncate font-mono text-2xs text-muted-foreground/70">
512+
{model.slug}
513+
</code>
514+
) : null}
515+
</span>
516+
{model.isCustom ? (
517+
<span className="shrink-0 text-2xs text-muted-foreground/70">custom</span>
507518
) : null}
508-
{model.isCustom ? <span className="text-2xs text-muted-foreground/70">custom</span> : null}
509519
</span>
510520
<span className="text-2xs text-muted-foreground/70">
511521
{capLabels.length > 0 ? (

0 commit comments

Comments
 (0)