Skip to content

Commit

Permalink
fixes "send to" buttons, submodule update
Browse files Browse the repository at this point in the history
  • Loading branch information
zero01101 committed Mar 30, 2023
1 parent 46534e8 commit 566a8a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app
7 changes: 4 additions & 3 deletions javascript/openoutpaint-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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;
};
Expand Down

0 comments on commit 566a8a5

Please sign in to comment.