diff --git a/ui/media/main.js b/ui/media/main.js index 23c7ab11..b7fc33c5 100644 --- a/ui/media/main.js +++ b/ui/media/main.js @@ -984,12 +984,19 @@ function createTask(task) { imagePreview.insertBefore(taskEntry, previewTools.nextSibling) task.previewPrompt.innerText = task.reqBody.prompt + if (task.previewPrompt.innerText.trim() === '') { + task.previewPrompt.innerHTML = ' ' // allows the results to be collapsed + } taskQueue.unshift(task) } function getPrompts() { let prompts = promptField.value + if (prompts.trim() === '') { + return [''] + } + prompts = prompts.split('\n') let promptsToMake = []