Fix: Background Image fix for dark theme loading change. (#8292)

## Summary

The variable whose name implied it was just an image URL bundled other
background pieces.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-8292-Fix-Background-Image-fix-for-dark-theme-loading-change-2f26d73d36508177ae7bc24ae3cb027b)
by [Unito](https://www.unito.io)
This commit is contained in:
Alexander Brown
2026-01-24 15:03:51 -08:00
committed by GitHub
parent e8022f9dee
commit 133427b08e
3 changed files with 12 additions and 6 deletions

View File

@@ -222,10 +222,7 @@ export const useColorPaletteService = () => {
const backgroundImage = settingStore.get('Comfy.Canvas.BackgroundImage')
if (backgroundImage) {
rootStyle.setProperty(
'--bg-img',
`url('${backgroundImage}') no-repeat center /cover`
)
rootStyle.setProperty('--bg-img', `url('${backgroundImage}')`)
} else {
rootStyle.removeProperty('--bg-img')
}