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

delete the --image-background-size variable
pull/33410/head
Simon L 2022-12-06 14:04:30 +07:00 committed by GitHub
commit 8124f683ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

@ -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 . "')";
}