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: rework the media pane headings and tidy the Create controls (#7986)

Michael Hanfd3367fa6717
diff --git a/studio/frontend/src/components/advanced-disclosure.tsx b/studio/frontend/src/components/advanced-disclosure.tsx
index 7783f8a7691..e98e211fc24 100644
--- a/studio/frontend/src/components/advanced-disclosure.tsx
+++ b/studio/frontend/src/components/advanced-disclosure.tsx
@@ -28,7 +28,7 @@ export function AdvancedDisclosure({
type="button"
onClick={() => onOpenChange(!open)}
aria-expanded={open}
- className="flex items-center gap-2 rounded-lg px-1 py-1.5 text-left transition-colors hover:bg-muted/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
+ className="flex items-center gap-2 rounded-lg px-3 py-1.5 text-left transition-colors hover:bg-muted/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
>
{/* Icon and label sized to the slider rows above, so it reads as one of them. */}
<HugeiconsIcon
diff --git a/studio/frontend/src/components/negative-prompt-field.tsx b/studio/frontend/src/components/negative-prompt-field.tsx
index 3cfa3a00028..d2682122a8e 100644
--- a/studio/frontend/src/components/negative-prompt-field.tsx
+++ b/studio/frontend/src/components/negative-prompt-field.tsx
@@ -7,10 +7,6 @@ import { InfoHint } from "@/components/ui/info-hint";
import { Textarea } from "@/components/ui/textarea";
import { cn } from "@/lib/utils";
-// The hint and chevron only appear with the row, so a rarely used field stays quiet.
-const REVEAL_ON_ROW_HOVER =
- "pointer-events-none inline-flex opacity-0 transition-opacity group-hover/negative:pointer-events-auto group-hover/negative:opacity-100 group-focus-within/negative:pointer-events-auto group-focus-within/negative:opacity-100";
-
/** Collapsible negative prompt, shared by the Images and Video Create panels. */
export function NegativePromptField({
value,
@@ -25,8 +21,9 @@ export function NegativePromptField({
onOpenChange: (open: boolean) => void;
hint: string;
}) {
+ // Same shape as Field, so it keeps the panel's spacing.
return (
- <div className="group/negative -mt-1 flex flex-col gap-1.5 pb-2">
+ <div className="flex flex-col gap-1.5">
<div className="flex items-center gap-1">
<button
type="button"
@@ -36,17 +33,14 @@ export function NegativePromptField({
>
Negative prompt
</button>
- <InfoHint>{hint}</InfoHint>
+ {/* Chevron before the hint, so it stays next to the label it expands. */}
<button
type="button"
// The labelled button above is the accessible toggle; this is decoration.
aria-hidden={true}
tabIndex={-1}
onClick={() => onOpenChange(!open)}
- className={cn(
- REVEAL_ON_ROW_HOVER,
- open && "pointer-events-auto opacity-100",
- )}
+ className="inline-flex"
>
<ChevronDown
className={cn(
@@ -55,6 +49,7 @@ export function NegativePromptField({
)}
/>
</button>
+ <InfoHint>{hint}</InfoHint>
</div>
{open && (
<Textarea
diff --git a/studio/frontend/src/features/images/images-page.tsx b/studio/frontend/src/features/images/images-page.tsx
index 102e1445819..21240dcb38a 100644
--- a/studio/frontend/src/features/images/images-page.tsx
+++ b/studio/frontend/src/features/images/images-page.tsx
@@ -2556,17 +2556,18 @@ export function ImagesPage({ active = true }: { active?: boolean }) {
)}
>
{/* The sidebar submenu is the switcher, so name the active workflow over its controls. */}
- <div className="grid gap-1">
- {/* h-9 keeps this level with the Video page heading. */}
- <h2 className="flex h-9 items-center gap-2 font-heading text-base font-medium text-foreground">
+ {/* Icon rides the heading; the line below runs the full width.
+ Same shape on the Video page, so the two stay level. */}
+ <div className="mb-2 grid gap-1.5">
+ <h2 className="flex items-center gap-2 font-heading text-xl font-medium leading-none text-foreground">
{/* Same icon the sidebar submenu uses for this workflow. */}
<HugeiconsIcon
icon={activeWorkflowTab.icon}
- className="size-4 shrink-0"
+ className="size-[18px] shrink-0"
/>
- {activeWorkflowTab.label}
+ {activeWorkflowTab.heading ?? activeWorkflowTab.label}
</h2>
- <p className="text-ui-11p5 leading-snug text-muted-foreground">
+ <p className="text-xs leading-snug text-muted-foreground">
{activeWorkflowTab.hint}
</p>
</div>
diff --git a/studio/frontend/src/features/images/train/diffusion-train-panel.tsx b/studio/frontend/src/features/images/train/diffusion-train-panel.tsx
index 62a80a50bf9..bf3965de109 100644
--- a/studio/frontend/src/features/images/train/diffusion-train-panel.tsx
+++ b/studio/frontend/src/features/images/train/diffusion-train-panel.tsx
@@ -1127,14 +1127,18 @@ export function DiffusionTrainPanel({
settingsFadeClass,
)}
>
- <div>
- {/* Matches "Training settings" across the rule, so the two headings read as one row. */}
- <h2 className="font-heading flex items-center gap-1.5 text-base font-medium">
- <HugeiconsIcon icon={TestTubeOutlineIcon} className="size-4" />
+ {/* Icon rides the heading; the line below runs the full width. */}
+ <div className="mb-1 grid gap-1.5">
+ {/* Matches "Train settings" across the rule, so the two headings read as one row. */}
+ <h2 className="flex items-center gap-2 font-heading text-xl font-medium leading-none">
+ <HugeiconsIcon
+ icon={TestTubeOutlineIcon}
+ className="size-[18px] shrink-0"
+ />
Train a LoRA
</h2>
- <p className="mt-1 text-ui-11 leading-snug text-muted-foreground">
- Teach a model a style or subject from your own images.
+ <p className="text-xs leading-snug text-muted-foreground">
+ Teach a model a new style or subject.
</p>
</div>
@@ -1483,11 +1487,21 @@ export function DiffusionTrainPanel({
) : !hasRun ? (
<>
<div className="flex flex-col gap-4">
- <div className="flex items-center justify-between">
- <span className="font-heading flex items-center gap-1.5 text-base font-medium">
- <HugeiconsIcon icon={Settings02Icon} className="size-4" />
- Training settings
- </span>
+ {/* mb-2 + gap-4 matches the left column's mb-1 + gap-5, so Steps
+ starts level with Model family. */}
+ <div className="mb-2 flex items-center justify-between">
+ <div className="grid gap-1.5">
+ <span className="flex items-center gap-2 font-heading text-xl font-medium leading-none">
+ <HugeiconsIcon
+ icon={Settings02Icon}
+ className="size-[18px] shrink-0"
+ />
+ Train settings
+ </span>
+ <p className="text-xs leading-snug text-muted-foreground">
+ Hyperparameters for this run.
+ </p>
+ </div>
<span className="text-xs text-muted-foreground">
Applied on Start training
</span>
diff --git a/studio/frontend/src/features/images/workflows.ts b/studio/frontend/src/features/images/workflows.ts
index 97b2caa67b8..58037d2e76b 100644
--- a/studio/frontend/src/features/images/workflows.ts
+++ b/studio/frontend/src/features/images/workflows.ts
@@ -26,6 +26,9 @@ export type WorkflowId =
export const WORKFLOW_TABS: Array<{
id: WorkflowId;
label: string;
+ /** Page heading, when the sidebar's short label would read oddly on its own.
+ * Falls back to `label`. */
+ heading?: string;
requires: string | null;
icon: IconSvgElement;
hint: string;
@@ -33,6 +36,8 @@ export const WORKFLOW_TABS: Array<{
{
id: "create",
label: "Create",
+ // The sidebar nests this under Images, so "Create" alone is clear there.
+ heading: "Create images",
requires: null,
// Not the pencil: that is the sidebar's New chat icon.
icon: SparklesIcon,
diff --git a/studio/frontend/src/features/video/video-page.tsx b/studio/frontend/src/features/video/video-page.tsx
index 4703b0ac433..d0c87876176 100644
--- a/studio/frontend/src/features/video/video-page.tsx
+++ b/studio/frontend/src/features/video/video-page.tsx
@@ -8,7 +8,6 @@ import {
FlimSlateIcon,
Image03Icon,
InformationCircleIcon,
- SparklesIcon,
VolumeHighIcon,
} from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
@@ -1558,14 +1557,15 @@ export function VideoPage({ active = true }: { active?: boolean }) {
settingsFadeClass,
)}
>
- {/* Names the pane, as the Images column does. h-9 keeps both pages' headings level. */}
- <div className="grid gap-1">
- <h2 className="flex h-9 items-center gap-2 font-heading text-base font-medium text-foreground">
- {/* The Images page's Create icon, so both headings read the same. */}
- <HugeiconsIcon icon={SparklesIcon} className="size-4 shrink-0" />
- Create
+ {/* Names the pane, as the Images column does. Same shape there, so
+ the two pages stay level. */}
+ <div className="mb-2 grid gap-1.5">
+ <h2 className="flex items-center gap-2 font-heading text-xl font-medium leading-none text-foreground">
+ {/* The app's Video icon, same as the sidebar row. */}
+ <HugeiconsIcon icon={FlimSlateIcon} className="size-[18px] shrink-0" />
+ Create videos
</h2>
- <p className="text-ui-11p5 leading-snug text-muted-foreground">
+ <p className="text-xs leading-snug text-muted-foreground">
Generate a video from a prompt
</p>
</div>