]> source.dussan.org Git - nextcloud-server.git/commitdiff
Merge pull request #525 from nextcloud/fix-theme-logo-position
authorJoas Schilling <coding@schilljs.com>
Tue, 26 Jul 2016 08:46:13 +0000 (10:46 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Jul 2016 08:46:13 +0000 (10:46 +0200)
Fix theme logo position and shape

1  2 
apps/theming/lib/controller/themingcontroller.php
apps/theming/tests/lib/controller/ThemingControllerTest.php

index 1acfdff020c726ff1897ed164dab15e45c9662b8,3a8405909b032623c768326b5656501e007bd3f1..24eb0510f9939d48cb1bd85e7ad578a804791cff
@@@ -443,8 -444,9 +444,9 @@@ class ThemingControllerTest extends Tes
                        ->with('theming', 'backgroundMime', '')
                        ->willReturn('image/png');
  
 -              $expected = new Http\DataDownloadResponse('#body-user #header,#body-settings #header,#body-public #header {background-color: #000}#header .logo {
 +              $expected = new Http\DataDownloadResponse('#body-user #header,#body-settings #header,#body-public #header,#body-login,.searchbox input[type="search"]:focus,.searchbox input[type="search"]:active,.searchbox input[type="search"]:valid {background-color: #000}#header .logo {
                                background-image: url(\'./logo?v=0\');
+                               background-size: contain;
                        }
                        #header .logo-icon {
                                background-image: url(\'./logo?v=0\');
                        ->with('theming', 'backgroundMime', '')
                        ->willReturn('image/png');
  
 -              $expected = new Http\DataDownloadResponse('#body-user #header,#body-settings #header,#body-public #header {background-color: #fff}#header .logo {
 +              $expected = new Http\DataDownloadResponse('#body-user #header,#body-settings #header,#body-public #header,#body-login,.searchbox input[type="search"]:focus,.searchbox input[type="search"]:active,.searchbox input[type="search"]:valid {background-color: #fff}#header .logo {
                                background-image: url(\'./logo?v=0\');
+                               background-size: contain;
                        }
                        #header .logo-icon {
                                background-image: url(\'./logo?v=0\');