]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: custom logo size in Webkit (#6036)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Wed, 6 Mar 2024 23:58:31 +0000 (15:58 -0800)
committershamoon <4887959+shamoon@users.noreply.github.com>
Thu, 7 Mar 2024 00:08:44 +0000 (16:08 -0800)
src-ui/src/app/components/common/logo/logo.component.html
src-ui/src/app/components/dashboard/dashboard.component.html

index 6fb00339607045c612e80476ca1fce3126736bd6..d256517aeb3208a18b4f1eb5a13b33d063a5bb95 100644 (file)
@@ -1,5 +1,5 @@
 @if (customLogo) {
-    <img src="{{customLogo}}" height="100%" width="100%" [attr.style]="'height:'+height" />
+    <img src="{{customLogo}}" [class]="getClasses()" [attr.style]="'height:'+height" />
 } @else {
     <svg [class]="getClasses()" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2897.4 896.6" [attr.style]="'height:'+height">
         <path class="leaf" d="M140,713.7c-3.4-16.4-10.3-49.1-11.2-49.1c-145.7-87.1-128.4-238-80.2-324.2C59,449,251.2,524,139.1,656.8 c-0.9,1.7,5.2,22.4,10.3,41.4c22.4-37.9,56-83.6,54.3-87.9C65.9,273.9,496.9,248.1,586.6,39.4c40.5,201.8-20.7,513.9-367.2,593.2 c-1.7,0.9-62.9,108.6-65.5,109.5c0-1.7-25.9-0.9-22.4-9.5C133.1,727.4,136.6,720.6,140,713.7L140,713.7z M135.7,632.6 c44-50.9-7.8-137.9-38.8-166.4C149.5,556.7,146,609.3,135.7,632.6L135.7,632.6z" transform="translate(0)" style="fill:#17541f"/>
index 4d1c510ab67f93ce2e5c22fd64e9b2b17c636618..ac7bb9eb1aca21cd14b3a7b991502b06c1b9720b 100644 (file)
@@ -1,5 +1,5 @@
 <pngx-page-header title="Dashboard" [subTitle]="subtitle" i18n-title>
-  <pngx-logo extra_classes="d-none d-md-block mt-n2 me-1" height="3.5rem"></pngx-logo>
+  <pngx-logo extra_classes="d-none d-md-block mt-n2" height="3.5rem"></pngx-logo>
 </pngx-page-header>
 
 <div class="row">