mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Merge branch 'crohrer_main'
This commit is contained in:
@@ -45,6 +45,9 @@ function processTextNode(node) {
|
|||||||
var tl = getTranslation(text);
|
var tl = getTranslation(text);
|
||||||
if (tl !== undefined) {
|
if (tl !== undefined) {
|
||||||
node.textContent = tl;
|
node.textContent = tl;
|
||||||
|
if (text && node.parentElement) {
|
||||||
|
node.parentElement.setAttribute("data-original-text", text);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -159,7 +159,8 @@ function initStylePreviewOverlay() {
|
|||||||
label.addEventListener("mouseout", onMouseLeave);
|
label.addEventListener("mouseout", onMouseLeave);
|
||||||
overlayVisible = true;
|
overlayVisible = true;
|
||||||
overlay.style.display = "block";
|
overlay.style.display = "block";
|
||||||
const name = label.querySelector("span").textContent;
|
const originalText = label.querySelector("span").getAttribute("data-original-text");
|
||||||
|
const name = originalText || label.querySelector("span").textContent;
|
||||||
overlay.style.backgroundImage = `url("${samplesPath.replace(
|
overlay.style.backgroundImage = `url("${samplesPath.replace(
|
||||||
"Fooocus V2",
|
"Fooocus V2",
|
||||||
name
|
name
|
||||||
|
|||||||
Reference in New Issue
Block a user