diff --git a/core/http/static/image.js b/core/http/static/image.js index 9533a14b8665..5581d81a9fe9 100644 --- a/core/http/static/image.js +++ b/core/http/static/image.js @@ -154,7 +154,7 @@ async function promptDallE() { if (json.data && json.data.length > 0) { json.data.forEach((item, index) => { const imageContainer = document.createElement("div"); - imageContainer.className = "mb-4 bg-[var(--color-bg-primary)]/50 border border-[#1E293B] rounded-lg p-2"; + imageContainer.className = "flex flex-col"; // Create image element const img = document.createElement("img"); @@ -166,23 +166,23 @@ async function promptDallE() { return; // Skip invalid items } img.alt = prompt; - img.className = "w-full h-auto rounded-lg mb-2"; + img.className = "w-full h-auto rounded-lg"; imageContainer.appendChild(img); - // Create caption container + // Create caption container (optional, can be collapsed or shown on hover) const captionDiv = document.createElement("div"); - captionDiv.className = "mt-2 p-2 bg-[var(--color-bg-secondary)] rounded-lg"; + captionDiv.className = "mt-2 p-2 bg-[var(--color-bg-secondary)] rounded-lg text-xs"; // Prompt caption const promptCaption = document.createElement("p"); - promptCaption.className = "text-xs text-[var(--color-text-primary)] mb-1.5"; + promptCaption.className = "text-[var(--color-text-primary)] mb-1.5 break-words"; promptCaption.innerHTML = 'Prompt: ' + escapeHtml(prompt); captionDiv.appendChild(promptCaption); // Negative prompt if provided if (negativePrompt) { const negativeCaption = document.createElement("p"); - negativeCaption.className = "text-xs text-[var(--color-text-secondary)] mb-1.5"; + negativeCaption.className = "text-[var(--color-text-secondary)] mb-1.5 break-words"; negativeCaption.innerHTML = 'Negative Prompt: ' + escapeHtml(negativePrompt); captionDiv.appendChild(negativeCaption); } diff --git a/core/http/views/text2image.html b/core/http/views/text2image.html index 9f9fdcd602e8..a7bc0ce4f097 100644 --- a/core/http/views/text2image.html +++ b/core/http/views/text2image.html @@ -215,26 +215,23 @@
Generating image...
-Your generated images will appear here
+Generating image...
Your generated images will appear here
+