mirror of
https://github.com/vladmandic/automatic
synced 2026-09-12 07:58:43 +02:00
css fixes
This commit is contained in:
@@ -97,15 +97,14 @@ function setupExtraNetworks() {
|
||||
function registerPrompt(tabname, id) {
|
||||
const textarea = gradioApp().querySelector(`#${id} > label > textarea`);
|
||||
if (!activePromptTextarea[tabname]) activePromptTextarea[tabname] = textarea;
|
||||
textarea.addEventListener('focus', () => {
|
||||
activePromptTextarea[tabname] = textarea;
|
||||
});
|
||||
textarea.addEventListener('focus', () => { activePromptTextarea[tabname] = textarea; });
|
||||
}
|
||||
|
||||
registerPrompt('txt2img', 'txt2img_prompt');
|
||||
registerPrompt('txt2img', 'txt2img_neg_prompt');
|
||||
registerPrompt('img2img', 'img2img_prompt');
|
||||
registerPrompt('img2img', 'img2img_neg_prompt');
|
||||
log('initExtraNetworks');
|
||||
}
|
||||
|
||||
onUiLoaded(setupExtraNetworks);
|
||||
|
||||
Reference in New Issue
Block a user