🐛 fix: Fix extranetwork loading

pull/518/head
canisminor1990 2024-01-14 16:12:22 +08:00
parent 90cb669eba
commit 0be4a249ae
4 changed files with 23 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -3,4 +3,10 @@ export const refreshExtraNetwork = (type: 'txt' | 'img') => {
`#${type}2img_extra_tabs > .tab-nav > button`,
)[1] as HTMLButtonElement;
extraNetworkButton?.click();
const searchAll = Array.from(
document.querySelectorAll(`#${type}2img_extra_tabs button.search-all`),
) as HTMLButtonElement[];
for (const e of searchAll) e.click();
};

View File

@ -56,6 +56,14 @@ export const useStyles = createStyles(
}
.extra-networks {
.pending {
opacity: 1 !important;
}
.wrap.center.full.translucent {
display: none !important;
}
.tab-nav {
align-items: center;

View File

@ -52,6 +52,7 @@ export const useCivitaiHelperFix = ({
onSuccess?.();
isInject.current = true;
setIsLoading(false);
if (debug) consola.success(`🤯 ${debug}`);