fix styling issue of send to canvas editor button

master
Terry Jia 2023-10-14 09:31:16 -04:00
parent 654a88bc21
commit e4c9e15f09
1 changed files with 4 additions and 2 deletions

View File

@ -48,9 +48,11 @@
const newButton = existingButton.cloneNode(true);
newButton.style.display = "flex";
newButton.id = `${queryId}_send_to_canvasEditor`;
newButton.textContent = "Send to CanvasEditor";
newButton.addEventListener("click", () => sendImageToCanvasEditor(gallery));
gradioApp().querySelector(`#${queryId}`).appendChild(newButton);
newButton.title = "Send to Canvas Editor"
newButton.textContent = "\u{2712}";
existingButton.parentNode.appendChild(newButton);
}
});