From df7008ddadd7b567424a8eb3a606de54381ebcc2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 16 Apr 2024 10:12:19 +0200 Subject: [PATCH] Remove unused property --- client/src/app/shared/shared-icons/global-icon.component.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/src/app/shared/shared-icons/global-icon.component.ts b/client/src/app/shared/shared-icons/global-icon.component.ts index 8ac0d02f0..8643dcb9a 100644 --- a/client/src/app/shared/shared-icons/global-icon.component.ts +++ b/client/src/app/shared/shared-icons/global-icon.component.ts @@ -92,7 +92,6 @@ export type GlobalIconName = keyof typeof icons }) export class GlobalIconComponent implements OnInit { @Input() iconName: GlobalIconName - @Input() width: string constructor ( private el: ElementRef, @@ -101,6 +100,7 @@ export class GlobalIconComponent implements OnInit { async ngOnInit () { const nativeElement = this.el.nativeElement as HTMLElement + nativeElement.innerHTML = await this.hooks.wrapFun( this.getSVGContent.bind(this), { name: this.iconName }, @@ -109,10 +109,6 @@ export class GlobalIconComponent implements OnInit { 'filter:internal.common.svg-icons.get-content.result' ) nativeElement.ariaHidden = 'true' - - if (this.width) { - nativeElement.style.width = this.width - } } private getSVGContent (options: { name: GlobalIconName }) {