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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Studio: align toast icons with the first line on multi-line toasts (#14082)
Michael Haneaa9c8535297
diff --git a/studio/frontend/src/features/chat/components/model-load-status.tsx b/studio/frontend/src/features/chat/components/model-load-status.tsxindex 9e8bc533c2e..1f125d77204 100644--- a/studio/frontend/src/features/chat/components/model-load-status.tsx+++ b/studio/frontend/src/features/chat/components/model-load-status.tsx@@ -47,11 +47,23 @@ export function ModelLoadDescription({splitProgressLabel(progressLabel);return (- <div className={cn("relative flex min-h-12 w-full items-stretch gap-3", className)}>- <div className="flex h-full shrink-0 items-center self-center">+ <div+ className={cn(+ "relative grid min-h-12 w-full grid-cols-[auto_minmax(0,1fr)] content-center items-start gap-x-3",+ className,+ )}+ >+ {/* With a title the spinner sits on its line (1.25em = leading-tight), so a description+ below it or a wrapped title leaves the spinner level with the first line. */}+ <div+ className={cn(+ "flex shrink-0 items-center",+ title ? "h-[1.25em]" : "self-center",+ )}+ ><Spinner className="size-3.5 text-muted-foreground" /></div>- <div className="flex min-w-0 flex-1 flex-col justify-center">+ <div className="flex min-w-0 flex-col">{title ? <p className="text-foreground leading-tight font-semibold">{title}</p> : null}{hasProgress ? (<div className="w-full pt-1">diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.cssindex b1ae7299136..e43eed19b50 100644--- a/studio/frontend/src/index.css+++ b/studio/frontend/src/index.css@@ -4881,14 +4881,10 @@ html[data-chat-font] .aui-root {box-shadow: var(--composer-shadow) !important;}-/* Icon starts at the first line's cap height, never above the text. */+/* Icon centred on the first text line, so multi-line toasts keep it level with the title.+ Title and description line heights are 1.5 and 1.4. */[data-sonner-toast][data-styled='true'] [data-icon] {- margin: 0.4em 0 0 !important;-}--/* Single text line: center the icon on it. Title and description line heights are 1.5 and 1.4. */-[data-sonner-toast][data-styled='true']:not(:has([data-description])) [data-icon] {- margin-top: calc((1.5em - var(--ui-icon-size)) / 2) !important;+ margin: calc((1.5em - var(--ui-icon-size)) / 2) 0 0 !important;}[data-sonner-toast][data-styled='true']:not(:has([data-title])) [data-icon] {margin-top: calc((1.4em - var(--ui-icon-size)) / 2) !important;@@ -4965,7 +4961,6 @@ html[data-chat-font] .aui-root {[data-sonner-toast][data-styled='true'].chat-model-load-toast [data-content] {flex: 1 1 auto;}-[data-sonner-toast][data-styled='true'].chat-model-load-toast [data-button] {align-self: center;flex: none;