Merge branch 'hotfix/rename-preview-images'

# Conflicts:
#	css/style.css
#	javascript/script.js
#	modules/ui_gradio_extensions.py
This commit is contained in:
Manuel Schmid
2024-01-09 14:33:02 +01:00
282 changed files with 14 additions and 7 deletions
+3 -3
View File
@@ -162,9 +162,9 @@ function initStylePreviewOverlay() {
const originalText = label.querySelector("span").getAttribute("data-original-text");
const name = originalText || label.querySelector("span").textContent;
overlay.style.backgroundImage = `url("${samplesPath.replace(
"Fooocus V2",
name
)}")`;
"fooocus_v2",
name.toLowerCase().replaceAll(" ", "_")
).replaceAll("\\", "\\\\")}")`;
function onMouseLeave() {
overlayVisible = false;
overlay.style.display = "none";