From 37d67c2a342f7e158a92df23afbd439c346c111a Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Wed, 24 Jun 2026 19:07:04 -0300 Subject: [PATCH] Roomier content padding and hide the negative prompt at guidance 0 --- .../src/features/images/images-page.tsx | 40 +++++++++++-------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/studio/frontend/src/features/images/images-page.tsx b/studio/frontend/src/features/images/images-page.tsx index b79c2098cc..e4b304c64e 100644 --- a/studio/frontend/src/features/images/images-page.tsx +++ b/studio/frontend/src/features/images/images-page.tsx @@ -611,7 +611,9 @@ export function ImagesPage() { for (let i = 0; i < count; i++) { const res = await generateDiffusionImage({ prompt: prompt.trim(), - negative_prompt: negativePrompt.trim() || undefined, + // Only send a negative prompt when guidance uses it, so the recipe + // doesn't record one the model ignored. + negative_prompt: guidance > 0 ? negativePrompt.trim() || undefined : undefined, width: w, height: h, steps, @@ -635,8 +637,9 @@ export function ImagesPage() { return (