Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio: Models panel part of its card, even form footer, OpenRouter mark under a new file name (#13974)

Michael Han147b6949e1ca
diff --git a/studio/frontend/public/provider-logos/openrouter.svg b/studio/frontend/public/provider-logos/openrouter-mark.svg
similarity index 100%
rename from studio/frontend/public/provider-logos/openrouter.svg
rename to studio/frontend/public/provider-logos/openrouter-mark.svg
diff --git a/studio/frontend/src/features/chat/chat-providers-dialog.tsx b/studio/frontend/src/features/chat/chat-providers-dialog.tsx
index 836984f73bb..c1c89261b96 100644
--- a/studio/frontend/src/features/chat/chat-providers-dialog.tsx
+++ b/studio/frontend/src/features/chat/chat-providers-dialog.tsx
@@ -12,6 +12,7 @@ import {
} from "@/components/ui/dialog";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
+import { cn } from "@/lib/utils";
import {
Select,
SelectContent,
@@ -465,6 +466,13 @@ export function ChatProvidersSettings({
: `${availableModels.length} models`;
const modelSearchInputClassName =
"h-8 w-full bg-background/55 text-xs placeholder:text-muted-foreground/65 focus-visible:border-border focus-visible:ring-0";
+ // Full-bleed rows of the Models card (-mx-4 undoes the body padding). The list grows with its rows
+ // and only scrolls past 10 (rows are min-h-9, plus 1px dividers).
+ const modelListClassName = cn(
+ "-mx-4 divide-y divide-border/60 border-border/60 border-y last:-mb-4 last:border-b-0",
+ filteredAvailableModels.length > 10 &&
+ "max-h-[calc(var(--spacing)*90+10px)] overflow-y-auto",
+ );
useEffect(() => {
providersRef.current = providers;
@@ -1492,7 +1500,7 @@ export function ChatProvidersSettings({
if (page === "form") {
return (
- <div className="@container -mt-3 flex min-h-0 flex-col gap-2">
+ <div className="@container -mt-3 flex shrink-0 flex-col gap-2">
<header className="flex items-center gap-2 pr-8">
<Button
type="button"
@@ -2070,7 +2078,7 @@ export function ChatProvidersSettings({
Select from suggestions below or enter exact model IDs.
</p>
{availableModels.length > 0 ? (
- <div className="space-y-3 rounded-md border border-border/70 bg-background/50 p-3">
+ <>
<div className="grid grid-cols-[minmax(90px,auto)_minmax(0,1fr)_auto] items-center gap-3 @max-[520px]:grid-cols-1">
<span className="whitespace-nowrap text-xs font-medium text-muted-foreground">
{availableModelsLabel}
@@ -2110,16 +2118,16 @@ export function ChatProvidersSettings({
</Button>
</div>
</div>
- <ul className="max-h-56 overflow-y-auto scroll-rounded rounded-md border border-border/70 bg-background/50">
+ <ul className={modelListClassName}>
{filteredAvailableModels.length === 0 ? (
- <li className="px-3 py-3 text-xs text-muted-foreground">
+ <li className="px-4 py-2.5 text-xs text-muted-foreground">
No matching models
</li>
) : (
filteredAvailableModels.map((model, index) => (
<li
key={model}
- className="flex cursor-pointer items-center gap-2.5 border-border/60 border-b px-3 py-2 last:border-b-0 hover:bg-muted/35"
+ className="flex min-h-9 cursor-pointer items-center gap-2.5 px-4 py-1.5 hover:bg-muted/35"
onClick={() => toggleModel(model)}
>
<Checkbox
@@ -2137,7 +2145,7 @@ export function ChatProvidersSettings({
))
)}
</ul>
- </div>
+ </>
) : null}
{modelIdsEditable ? (
<div className="space-y-2">
@@ -2199,16 +2207,16 @@ export function ChatProvidersSettings({
</Button>
</div>
</div>
- <ul className="max-h-56 overflow-y-auto scroll-rounded rounded-md border border-border/70 bg-background/50">
+ <ul className={modelListClassName}>
{filteredAvailableModels.length === 0 ? (
- <li className="px-3 py-3 text-xs text-muted-foreground">
+ <li className="px-4 py-2.5 text-xs text-muted-foreground">
No matching models
</li>
) : (
filteredAvailableModels.map((model, index) => (
<li
key={model}
- className="flex cursor-pointer items-center gap-2.5 border-border/60 border-b px-3 py-2 last:border-b-0 hover:bg-muted/35"
+ className="flex min-h-9 cursor-pointer items-center gap-2.5 px-4 py-1.5 hover:bg-muted/35"
onClick={() => toggleModel(model)}
>
<Checkbox
@@ -2259,7 +2267,8 @@ export function ChatProvidersSettings({
</AnimatePresence>
</section>
- <div className="mb-3 flex flex-wrap items-center justify-end gap-3">
+ {/* -mb-3 trims the settings pane's p-6 so the gap below the buttons matches the gap-3 above. */}
+ <div className="-mb-3 flex flex-wrap items-center justify-end gap-3">
<div className="flex flex-wrap gap-2">
<Button
type="button"
diff --git a/studio/frontend/src/features/chat/provider-logo-path.ts b/studio/frontend/src/features/chat/provider-logo-path.ts
index e56511a91a0..7bc5c575956 100644
--- a/studio/frontend/src/features/chat/provider-logo-path.ts
+++ b/studio/frontend/src/features/chat/provider-logo-path.ts
@@ -22,7 +22,7 @@ const HUB_LOGO_PATHS = new Map(
const CONNECTION_LOGO_PATHS = new Map([
["gemini", "/provider-logos/gemini.svg"],
["anthropic", "/provider-logos/anthropic.svg"],
- ["openrouter", "/provider-logos/openrouter.svg"],
+ ["openrouter", "/provider-logos/openrouter-mark.svg"],
["vllm", "/provider-logos/vllm.svg"],
["ollama", "/provider-logos/ollama.svg"],
["llama_cpp", "/provider-logos/llama_cpp.svg"],