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.

Images: smaller prompt box radius, inset scrollbar, taller default (#12223)

Michael Hand670959f97d6
diff --git a/studio/frontend/src/components/negative-prompt-field.tsx b/studio/frontend/src/components/negative-prompt-field.tsx
index a4e29d9a4b0..7d4a8b5708a 100644
--- a/studio/frontend/src/components/negative-prompt-field.tsx
+++ b/studio/frontend/src/components/negative-prompt-field.tsx
@@ -18,12 +18,14 @@ export function NegativePromptField({
open,
onOpenChange,
hint,
+ textareaClassName,
}: {
value: string;
onChange: (value: string) => void;
open: boolean;
onOpenChange: (open: boolean) => void;
hint: string;
+ textareaClassName?: string;
}) {
// Same shape as Field, so it keeps the panel's spacing.
return (
@@ -58,6 +60,7 @@ export function NegativePromptField({
{open && (
<Textarea
rows={2}
+ className={textareaClassName}
maxLength={NEGATIVE_PROMPT_MAX_LENGTH}
placeholder="What to avoid (optional)"
value={value}
diff --git a/studio/frontend/src/features/images/images-page.tsx b/studio/frontend/src/features/images/images-page.tsx
index 2c2eefcfa2b..74e7fa742e8 100644
--- a/studio/frontend/src/features/images/images-page.tsx
+++ b/studio/frontend/src/features/images/images-page.tsx
@@ -713,6 +713,9 @@ function SliderField({
}
// Matches the field-label style used across Unsloth.
+// Prompt boxes: smaller radius, scrollbar inset from the corners.
+const IMAGE_PROMPT_BOX = "image-prompt-box rounded-lg";
+
function Field({
label,
hint,
@@ -5160,6 +5163,7 @@ export function ImagesPage({
<Field label={workflow === "edit" ? "Instruction" : "Prompt"}>
<Textarea
rows={4}
+ className={cn(IMAGE_PROMPT_BOX, "min-h-32")}
placeholder={
examplesDismissed[workflow] ? undefined : WORKFLOW_EXAMPLE_PROMPTS[workflow]
}
@@ -5178,6 +5182,7 @@ export function ImagesPage({
open={negativeOpen}
onOpenChange={setNegativeOpen}
hint="What to steer the image away from. Only used when guidance is above 0."
+ textareaClassName={IMAGE_PROMPT_BOX}
/>
{/* LoRA adapters: shown whenever the loaded model + quant can apply them. Each carries a 0-2 weight. */}
{loraCapable && (
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css
index 78f76a561b8..e86bbdd5376 100644
--- a/studio/frontend/src/index.css
+++ b/studio/frontend/src/index.css
@@ -4810,6 +4810,30 @@ html.force-reduced-motion .sidebar-section-drop-line {
}
}
+/* Images prompt boxes: inset the scroll track so the thumb stays inside the
+ rounded corners. Chromium ignores ::-webkit-scrollbar while scrollbar-width
+ or scrollbar-color is set, so reset them. */
+@supports selector(::-webkit-scrollbar) {
+ .image-prompt-box,
+ .dark .image-prompt-box {
+ scrollbar-width: auto;
+ scrollbar-color: auto;
+ }
+}
+
+.image-prompt-box::-webkit-scrollbar {
+ width: 12px;
+}
+
+.image-prompt-box::-webkit-scrollbar-track {
+ margin-block: 12px;
+}
+
+.image-prompt-box::-webkit-scrollbar-thumb {
+ border: 4px solid transparent;
+ background-clip: padding-box;
+}
+
/* Composer textarea: keep the scroll thumb faint until the user hovers or
drags the thumb itself, so a tall draft never shows a heavy dark rail. */
.composer-input,