🐛 fix: Fix extranetwork loading
parent
90cb669eba
commit
0be4a249ae
File diff suppressed because one or more lines are too long
|
|
@ -3,4 +3,10 @@ export const refreshExtraNetwork = (type: 'txt' | 'img') => {
|
||||||
`#${type}2img_extra_tabs > .tab-nav > button`,
|
`#${type}2img_extra_tabs > .tab-nav > button`,
|
||||||
)[1] as HTMLButtonElement;
|
)[1] as HTMLButtonElement;
|
||||||
extraNetworkButton?.click();
|
extraNetworkButton?.click();
|
||||||
|
|
||||||
|
const searchAll = Array.from(
|
||||||
|
document.querySelectorAll(`#${type}2img_extra_tabs button.search-all`),
|
||||||
|
) as HTMLButtonElement[];
|
||||||
|
|
||||||
|
for (const e of searchAll) e.click();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,14 @@ export const useStyles = createStyles(
|
||||||
}
|
}
|
||||||
|
|
||||||
.extra-networks {
|
.extra-networks {
|
||||||
|
.pending {
|
||||||
|
opacity: 1 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrap.center.full.translucent {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.tab-nav {
|
.tab-nav {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,7 @@ export const useCivitaiHelperFix = ({
|
||||||
|
|
||||||
onSuccess?.();
|
onSuccess?.();
|
||||||
isInject.current = true;
|
isInject.current = true;
|
||||||
|
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
if (debug) consola.success(`🤯 ${debug}`);
|
if (debug) consola.success(`🤯 ${debug}`);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue