aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-icons
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-13 10:14:03 +0200
committerChocobozzz <me@florianbigard.com>2022-06-13 11:23:36 +0200
commit93c728a25a87cf6dae5fc49d42d6af52ff7f7ff2 (patch)
treed9c658b4ac3467109a7f58b141d64a190f30cbaf /client/src/app/shared/shared-icons
parentc2faa073d113f410275021ed4de4b60fef118c13 (diff)
downloadPeerTube-93c728a25a87cf6dae5fc49d42d6af52ff7f7ff2.tar.gz
PeerTube-93c728a25a87cf6dae5fc49d42d6af52ff7f7ff2.tar.zst
PeerTube-93c728a25a87cf6dae5fc49d42d6af52ff7f7ff2.zip
Replace all glyphicon icons
Diffstat (limited to 'client/src/app/shared/shared-icons')
-rw-r--r--client/src/app/shared/shared-icons/global-icon.component.ts5
1 files changed, 5 insertions, 0 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 43c407743..8b864fd5f 100644
--- a/client/src/app/shared/shared-icons/global-icon.component.ts
+++ b/client/src/app/shared/shared-icons/global-icon.component.ts
@@ -91,6 +91,7 @@ export type GlobalIconName = keyof typeof icons
91}) 91})
92export class GlobalIconComponent implements OnInit { 92export class GlobalIconComponent implements OnInit {
93 @Input() iconName: GlobalIconName 93 @Input() iconName: GlobalIconName
94 @Input() width: string
94 95
95 constructor ( 96 constructor (
96 private el: ElementRef, 97 private el: ElementRef,
@@ -106,6 +107,10 @@ export class GlobalIconComponent implements OnInit {
106 'filter:internal.common.svg-icons.get-content.params', 107 'filter:internal.common.svg-icons.get-content.params',
107 'filter:internal.common.svg-icons.get-content.result' 108 'filter:internal.common.svg-icons.get-content.result'
108 ) 109 )
110
111 if (this.width) {
112 nativeElement.style.width = this.width
113 }
109 } 114 }
110 115
111 private getSVGContent (options: { name: string }) { 116 private getSVGContent (options: { name: string }) {