[fix] Clear CSS background variable when canvas background image is removed (#4034)

This commit is contained in:
Christian Byrne
2025-05-31 20:41:17 -07:00
committed by GitHub
parent b81c2f7cd2
commit 69f33f322f

View File

@@ -137,6 +137,8 @@ export const useColorPaletteService = () => {
'--bg-img',
`url('${backgroundImage}') no-repeat center /cover`
)
} else {
rootStyle.removeProperty('--bg-img')
}
}
}