You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the photopea-bindings.js file at line 32, this code generates the [Send to Photopea] button:
functioncreateSendToPhotopeaButton(queryId,gallery){constexistingButton=gradioApp().querySelector(`#${queryId} button`);constnewButton=existingButton.cloneNode(true);newButton.id=`${queryId}_open_in_photopea`;newButton.textContent="Send to Photopea";newButton.addEventListener("click",()=>openImageInPhotopea(gallery));gradioApp().querySelector(`#${queryId}`).appendChild(newButton);}
It clones the first button inside #${queryId}, which is [Open images output directory] button.
When using the --hide-ui-dir-config parameter, this button is hidden, and the cloned [Send to Photopea] button is also hidden.
Set display to "flex" in createSendToPhotopeaButton should solve this problem:
newButton.style.display="flex";
The text was updated successfully, but these errors were encountered:
In the photopea-bindings.js file at line 32, this code generates the [Send to Photopea] button:
It clones the first button inside
#${queryId}
, which is [Open images output directory] button.When using the --hide-ui-dir-config parameter, this button is hidden, and the cloned [Send to Photopea] button is also hidden.
Set display to "flex" in createSendToPhotopeaButton should solve this problem:
The text was updated successfully, but these errors were encountered: