fix loading hypernetwork

This commit is contained in:
Vladimir Mandic
2023-09-15 11:53:14 -04:00
parent 2309398be8
commit b67e986ec3
2 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -187,7 +187,10 @@ function setupExtraNetworksForTab(tabname) {
const intersectionObserver = new IntersectionObserver((entries) => {
if (!en) return;
for (const el of Array.from(gradioApp().querySelectorAll('.extra-networks-page'))) el.style.height = `${window.opts.extra_networks_height}vh`;
for (const el of Array.from(gradioApp().querySelectorAll('.extra-networks-page'))) {
el.style.height = `${window.opts.extra_networks_height}vh`;
el.parentElement.style.width = '-webkit-fill-available';
}
if (entries[0].intersectionRatio > 0) {
if (window.opts.extra_networks_card_cover === 'cover') {
en.style.transition = '';