mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-05 13:29:44 +02:00
fix(runtimes): keep base name visible, truncate hostname first (#2629)
The RUNTIME cell rendered base name + (hostname) with both spans using flex: 0 1 auto, so the longer hostname dominated and squashed the name to a single letter. Give the base name shrink priority and let the hostname own the flex slot with basis-0, so hostname truncates first while the name stays readable. Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -235,14 +235,14 @@ function RuntimeNameCell({ runtime }: { runtime: AgentRuntime }) {
|
||||
<ProviderLogo provider={runtime.provider} className="h-5 w-5" />
|
||||
</div>
|
||||
<div className="flex min-w-0 flex-1 items-center gap-1.5">
|
||||
<span className="block min-w-0 truncate text-sm font-medium">
|
||||
<span className="block min-w-0 shrink truncate text-sm font-medium">
|
||||
{baseName}
|
||||
</span>
|
||||
{hostname && (
|
||||
<Tooltip>
|
||||
<TooltipTrigger
|
||||
render={
|
||||
<span className="block min-w-0 truncate text-xs text-muted-foreground/70">
|
||||
<span className="block min-w-0 flex-1 basis-0 truncate text-xs text-muted-foreground/70">
|
||||
({hostname})
|
||||
</span>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user