Merge pull request #35547 from nextcloud/enh/noid/delete-background-size-variable

delete the --image-background-size variable
This commit is contained in:
Simon L 2022-12-06 14:04:30 +01:00 committed by GitHub
commit 8124f683ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,13 +103,6 @@ trait CommonThemeTrait {
foreach (ImageManager::SUPPORTED_IMAGE_KEYS as $image) {
if ($this->imageManager->hasImage($image)) {
$imageUrl = $this->imageManager->getImageUrl($image);
if ($image === 'background') {
// If background deleted is set, ignoring variable
if ($backgroundDeleted) {
continue;
}
$variables['--image-background-size'] = 'cover';
}
// --image-background is overridden by user theming
$variables["--image-$image"] = "url('" . $imageUrl . "')";
}