mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
rework settings, image-watermark, safe config handling
This commit is contained in:
@@ -63,6 +63,7 @@ async function setHints() {
|
||||
let localized = 0;
|
||||
let hints = 0;
|
||||
locale.finished = true;
|
||||
const t0 = performance.now();
|
||||
for (const el of elements) {
|
||||
const found = locale.data.find((l) => l.label === el.textContent.trim());
|
||||
if (found?.localized?.length > 0) {
|
||||
@@ -82,8 +83,9 @@ async function setHints() {
|
||||
}
|
||||
}
|
||||
}
|
||||
const t1 = performance.now();
|
||||
console.log('setHints', {
|
||||
type: locale.type, elements: elements.length, localized, hints, data: locale.data.length,
|
||||
type: locale.type, elements: elements.length, localized, hints, data: locale.data.length, time: t1 - t0,
|
||||
});
|
||||
// validateHints(elements, locale.data)
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ div.gradio-html.min{ min-height: 0; }
|
||||
.gradio-slider input[type="number"]{ width: 6em; }
|
||||
.hidden { display: none; }
|
||||
footer { display: none; }
|
||||
td { border-bottom: none !important; }
|
||||
|
||||
/* general styled components */
|
||||
.gradio-button.tool{ max-width: 1em; min-width: 1em !important; align-self: end; font-size: 1.4em }
|
||||
|
||||
Reference in New Issue
Block a user