modularize en

This commit is contained in:
Vladimir Mandic
2023-12-17 09:32:26 -05:00
parent 4f5478df4f
commit 2b56e82f16
3 changed files with 18 additions and 17 deletions
+1 -1
View File
@@ -357,8 +357,8 @@ function setupExtraNetworksForTab(tabname) {
};
// en style
if (!en) return;
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`;
el.parentElement.style.width = '-webkit-fill-available';