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
Move the Video, Train and Audio actions into the same in-flow footer (#8434)
Daniel Han15361faa077d
diff --git a/studio/frontend/src/features/audio/audio-page.tsx b/studio/frontend/src/features/audio/audio-page.tsxindex f5361f8836d..3c4766ce972 100644--- a/studio/frontend/src/features/audio/audio-page.tsx+++ b/studio/frontend/src/features/audio/audio-page.tsx@@ -1901,12 +1901,12 @@ export function AudioPage({ active = true }: { active?: boolean }) {{/* Below 50rem the panes stack and the page scrolls as one column, matching Images andVideo: side by side, the 408px rail plus a usable preview needs more width than that. */}<div className="flex min-h-0 w-full min-w-0 flex-1 flex-col overflow-y-auto overflow-x-hidden pl-2 pr-5 pt-9 sm:pr-8 @[50rem]:flex-row @[50rem]:overflow-hidden">- <div className="relative flex w-full shrink-0 flex-col border-b border-border/60 pl-8 @[50rem]:w-[408px] @[50rem]:overflow-hidden @[50rem]:border-r @[50rem]:border-b-0">+ <div className="flex w-full shrink-0 flex-col border-b border-border/60 pl-8 @[50rem]:w-[408px] @[50rem]:overflow-hidden @[50rem]:border-r @[50rem]:border-b-0"><divref={attachSettingsScroll}onScroll={onSettingsScroll}className={cn(- "hover-scrollbar panel-scroll-fade flex min-h-0 flex-1 flex-col gap-4 pb-20 pl-0.5 pr-8 @[50rem]:overflow-y-auto",+ "hover-scrollbar panel-scroll-fade-action flex min-h-0 flex-1 flex-col gap-4 pb-6 pl-0.5 pr-8 @[50rem]:overflow-y-auto",settingsFadeClass,)}>@@ -2034,9 +2034,10 @@ export function AudioPage({ active = true }: { active?: boolean }) {)}</div>{mode === "speak" ? (- <div className="pointer-events-none absolute inset-x-0 bottom-0 flex justify-center pb-7 pl-8 pr-8">+ /* The scroll mask provides the fade; leave the footer unpainted to avoid dark-mode banding. */+ <div className="relative z-10 flex shrink-0 justify-center pt-0.5 pb-4 pl-8 pr-8"><Button- className="btn-float-action pointer-events-auto h-11 px-8 disabled:bg-muted disabled:text-muted-foreground disabled:opacity-100"+ className="relative z-10 h-11 px-8 disabled:bg-muted disabled:text-muted-foreground disabled:opacity-100"onClick={busy === "generating" ? handleStopGeneration : handleGenerate}diff --git a/studio/frontend/src/features/images/train/diffusion-train-panel.tsx b/studio/frontend/src/features/images/train/diffusion-train-panel.tsxindex d6959bd9394..2f723f51a30 100644--- a/studio/frontend/src/features/images/train/diffusion-train-panel.tsx+++ b/studio/frontend/src/features/images/train/diffusion-train-panel.tsx@@ -1483,16 +1483,13 @@ export function DiffusionTrainPanel({return (<div className="flex min-h-0 w-full min-w-0 flex-1 flex-col overflow-y-auto overflow-x-hidden pr-5 sm:pr-8 @[50rem]:flex-row @[50rem]:overflow-hidden">{/* Left: configure. The 408px rail and container breakpoint match Create and the shared header. */}- <div className="relative flex w-full min-w-0 shrink-0 flex-col border-b border-border/60 pl-10 @[50rem]:w-[408px] @[50rem]:overflow-hidden @[50rem]:border-r @[50rem]:border-b-0">+ <div className="flex w-full min-w-0 shrink-0 flex-col border-b border-border/60 pl-10 @[50rem]:w-[408px] @[50rem]:overflow-hidden @[50rem]:border-r @[50rem]:border-b-0">{/* Keep the former row-level top inset inside the pane so the divider reaches the header. */}<divref={attachSettingsScroll}onScroll={onSettingsScroll}className={cn(- // pb-20 at every width: the floating Start training button below is absolutely- // positioned over this rail and stands 72px tall (h-11 + pb-7), so a smaller- // phone padding puts it on top of the Adapter name field.- "hover-scrollbar panel-scroll-fade flex min-h-0 flex-1 flex-col gap-5 overflow-x-hidden pb-20 pl-0.5 pr-8 pt-[42px] @[50rem]:overflow-y-auto",+ "hover-scrollbar panel-scroll-fade-action flex min-h-0 flex-1 flex-col gap-5 overflow-x-hidden pb-6 pl-0.5 pr-8 pt-[42px] @[50rem]:overflow-y-auto",settingsFadeClass,)}>@@ -1826,12 +1823,13 @@ export function DiffusionTrainPanel({</div></div>- {/* Floats over the settings, as Create's Generate does.+ {/* In its own footer, as Create's Generate is. The scroll mask provides the fade,+ so the footer stays unpainted to avoid dark-mode banding.Stop lives in the run card next to the live stats. */}- <div className="pointer-events-none absolute inset-x-0 bottom-0 flex justify-center pb-7 pl-8 pr-8">+ <div className="relative z-10 flex shrink-0 justify-center pt-0.5 pb-4 pl-8 pr-8"><Buttontype="button"- className="btn-float-action pointer-events-auto h-11 px-8 disabled:bg-muted disabled:text-muted-foreground disabled:opacity-100"+ className="relative z-10 h-11 px-8 disabled:bg-muted disabled:text-muted-foreground disabled:opacity-100"onClick={onStart}disabled={starting || uploading || running || familyUntrainable}>diff --git a/studio/frontend/src/features/video/video-page.tsx b/studio/frontend/src/features/video/video-page.tsxindex f6c04427b60..8a14081e4d1 100644--- a/studio/frontend/src/features/video/video-page.tsx+++ b/studio/frontend/src/features/video/video-page.tsx@@ -2958,16 +2958,13 @@ function VideoGenerator({ active = true }: { active?: boolean }) {letting a wide row pan the page sideways on a phone. */}<div className="flex min-h-0 w-full min-w-0 flex-1 flex-col overflow-y-auto overflow-x-hidden pl-2 pr-5 pt-9 sm:pr-8 md:flex-row md:overflow-hidden">{/* Widened by the pl-8 so the controls keep their old width. */}- <div className="relative flex w-full shrink-0 flex-col border-b border-border/60 pl-8 md:w-[400px] md:overflow-hidden md:border-r md:border-b-0">+ <div className="flex w-full shrink-0 flex-col border-b border-border/60 pl-8 md:w-[400px] md:overflow-hidden md:border-r md:border-b-0">{/* pl-0.5 keeps focus rings off the scroll container's edge. */}<divref={attachSettingsScroll}onScroll={onSettingsScroll}className={cn(- // pb-20 at every width: the floating Generate button below is absolutely- // positioned over this rail and stands 72px tall (h-11 + pb-7), so a smaller- // phone padding puts it on top of the last control.- "hover-scrollbar panel-scroll-fade flex min-h-0 flex-1 flex-col gap-4 pb-20 pl-0.5 pr-7 md:overflow-y-auto",+ "hover-scrollbar panel-scroll-fade-action flex min-h-0 flex-1 flex-col gap-4 pb-6 pl-0.5 pr-7 md:overflow-y-auto",settingsFadeClass,)}>@@ -3319,12 +3316,12 @@ function VideoGenerator({ active = true }: { active?: boolean }) {</AdvancedDisclosure></div>- {/* Floats over the settings so it needs no bar of its own. */}- <div className="pointer-events-none absolute inset-x-0 bottom-0 flex justify-center pb-7 pl-8 pr-7">+ {/* The scroll mask provides the fade; leave the footer unpainted to avoid dark-mode banding. */}+ <div className="relative z-10 flex shrink-0 justify-center pt-0.5 pb-4 pl-8 pr-7">{busy === "generating" ? (<Button- // Opaque hover: this one floats over the settings too.- className="pointer-events-auto h-11 px-8 hover:bg-muted dark:hover:bg-muted"+ // Kept in step with the Images Stop control, which uses the same fill.+ className="relative z-10 h-11 px-8 hover:bg-muted dark:hover:bg-muted"variant="outline"onClick={handleCancelGenerate}>@@ -3333,7 +3330,7 @@ function VideoGenerator({ active = true }: { active?: boolean }) {</Button>) : (<Button- className="btn-float-action pointer-events-auto h-11 px-8 disabled:bg-muted disabled:text-muted-foreground disabled:opacity-100"+ className="relative z-10 h-11 px-8 disabled:bg-muted disabled:text-muted-foreground disabled:opacity-100"onClick={handleGenerate}disabled={busy !== null || !status?.loaded}>diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.cssindex 5e1f9bbba26..b355011c51b 100644--- a/studio/frontend/src/index.css+++ b/studio/frontend/src/index.css@@ -1376,17 +1376,6 @@ html[data-chat-font] .aui-root {pointer-events: auto;}- /* The Create / Train action floats over its settings, so hover must lighten the fill- rather than thin it: a translucent green would show the controls behind it. Mixes to- what bg-primary/80 looks like on the page, but stays opaque. */- .btn-float-action:hover:not(:disabled) {- background-color: color-mix(- in srgb,- var(--primary) 80%,- var(--background)- ) !important;- }-/* Inline numeric input — used for slider values and Context Length.Designed to read as *editable text* rather than a pill button soit doesn't mirror the Select/dropdown components on the panel.