mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-07 17:04:01 +01:00
Newer images go on top
This commit is contained in:
parent
5db64526cc
commit
12182ee04f
@ -262,6 +262,8 @@ async function healthCheck() {
|
||||
function showImages(req, res, outputContainer, livePreview) {
|
||||
let imageItemElements = outputContainer.querySelectorAll('.imgItem')
|
||||
|
||||
res.output.reverse()
|
||||
|
||||
res.output.forEach((result, index) => {
|
||||
if(typeof res != 'object') return
|
||||
|
||||
@ -364,7 +366,7 @@ async function doMakeImage(task) {
|
||||
const outputContainer = document.createElement('div')
|
||||
|
||||
outputContainer.className = 'img-batch'
|
||||
task.outputContainer.appendChild(outputContainer)
|
||||
task.outputContainer.insertBefore(outputContainer, task.outputContainer.firstChild)
|
||||
|
||||
const outputMsg = task['outputMsg']
|
||||
const previewPrompt = task['previewPrompt']
|
||||
|
Loading…
Reference in New Issue
Block a user