diff --git a/app b/app index e32dfc8..5fb01c9 160000 --- a/app +++ b/app @@ -1 +1 @@ -Subproject commit e32dfc8891e4c3519e4712893d289022ee6efb79 +Subproject commit 5fb01c901f36cb911299ce5bca2cdd6accbeed95 diff --git a/javascript/openoutpaint-ext.js b/javascript/openoutpaint-ext.js index 8641518..a1e7dc7 100644 --- a/javascript/openoutpaint-ext.js +++ b/javascript/openoutpaint-ext.js @@ -26,10 +26,10 @@ function openoutpaint_dataURLtoFile(dataurl) { async function openoutpaint_get_image_from_gallery() { var buttons = gradioApp().querySelectorAll( - '[style="display: block;"].tabitem div[id$=_gallery] .gallery-item' + '[style="display: block;"].tabitem div[id$=_gallery] .thumbnail-item.thumbnail-small' ); var button = gradioApp().querySelector( - '[style="display: block;"].tabitem div[id$=_gallery] .gallery-item.\\!ring-2' + '[style="display: block;"].tabitem div[id$=_gallery] .thumbnail-item.thumbnail-small.selected' ); if (!button) button = buttons[0]; @@ -272,7 +272,8 @@ const openoutpaintjs = async () => { // Add button to other tabs const createButton = () => { const button = document.createElement("button"); - button.classList.add("gr-button", "gr-button-lg", "gr-button-secondary"); + button.id = "openOutpaint_tab"; + button.classList.add("lg", "secondary", "gradio-button", "svelte-1ipelgc"); button.textContent = "Send to openOutpaint"; return button; };