fixes "send to" buttons, submodule update

main
zero01101 2023-03-30 17:50:34 -05:00
parent 46534e8404
commit 566a8a53c9
2 changed files with 5 additions and 4 deletions

2
app

@ -1 +1 @@
Subproject commit e32dfc8891e4c3519e4712893d289022ee6efb79
Subproject commit 5fb01c901f36cb911299ce5bca2cdd6accbeed95

View File

@ -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;
};