mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Merge branch 'hotfix/rename-preview-images'
# Conflicts: # css/style.css # javascript/script.js # modules/ui_gradio_extensions.py
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user