]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: invalid height attr on logo svg
authorshamoon <4887959+shamoon@users.noreply.github.com>
Tue, 5 Dec 2023 17:00:06 +0000 (09:00 -0800)
committershamoon <4887959+shamoon@users.noreply.github.com>
Tue, 5 Dec 2023 17:08:42 +0000 (09:08 -0800)
src-ui/src/app/components/common/logo/logo.component.html
src-ui/src/app/components/common/logo/logo.component.spec.ts

index 6c688902e6646fbe67ede29c4019c0124a2e4cbe..af08e41fd1ddce41f6f61a3bbc9cf1ecab505fd6 100644 (file)
@@ -1,4 +1,4 @@
-<svg [class]="getClasses()" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2897.4 896.6" [attr.height]="height">
+<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"/>
     <g class="text" style="fill:#000">
         <path d="M1022.3,428.7c-17.8-19.9-42.7-29.8-74.7-29.8c-22.3,0-42.4,5.7-60.5,17.3c-18.1,11.6-32.3,27.5-42.5,47.8 s-15.3,42.9-15.3,67.8c0,24.9,5.1,47.5,15.3,67.8c10.3,20.3,24.4,36.2,42.5,47.8c18.1,11.5,38.3,17.3,60.5,17.3 c32,0,56.9-9.9,74.7-29.8v20.4v0.2h84.5V408.3h-84.5V428.7z M1010.5,575c-10.2,11.7-23.6,17.6-40.2,17.6s-29.9-5.9-40-17.6 s-15.1-26.1-15.1-43.3c0-17.1,5-31.6,15.1-43.3s23.4-17.6,40-17.6c16.6,0,30,5.9,40.2,17.6s15.3,26.1,15.3,43.3 S1020.7,563.3,1010.5,575z" transform="translate(0)"/>
index 118e0e40e54d5831782fb816a3b55dbf97438487..921ea37655a3bebb56e166bcfbf0a2cbae5ac9ab 100644 (file)
@@ -24,13 +24,13 @@ describe('LogoComponent', () => {
   })
 
   it('should support setting height', () => {
-    expect(fixture.debugElement.query(By.css('svg')).attributes.height).toEqual(
-      '6em'
+    expect(fixture.debugElement.query(By.css('svg')).attributes.style).toEqual(
+      'height:6em'
     )
     component.height = '10em'
     fixture.detectChanges()
-    expect(fixture.debugElement.query(By.css('svg')).attributes.height).toEqual(
-      '10em'
+    expect(fixture.debugElement.query(By.css('svg')).attributes.style).toEqual(
+      'height:10em'
     )
   })
 })