Skip to content

Commit 6d2f5b0

Browse files
timonbacksam0r040
authored andcommitted
fix(ui): add github png icon (#1541)
(cherry picked from commit 4b797da)
1 parent fbd264c commit 6d2f5b0

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

springwolf-ui/src/app/components/header/header.component.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
width: 3em;
55
display: block;
66
}
7+
.github {
8+
height: 2em;
9+
width: 2em;
10+
display: block;
11+
filter: invert(100%);
12+
}
713

814
:host ::ng-deep label,
915
a {

springwolf-ui/src/app/components/header/header.component.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,13 @@ <h1 class="width-s-hide">{{ title() }}</h1>
6969

7070
&nbsp;
7171
<a href="https://github.com/springwolf/springwolf-core" target="_blank">
72-
<mat-icon [svgIcon]="'github'" />
72+
<img
73+
src="assets/github.png"
74+
class="github"
75+
alt="Github"
76+
height="1024"
77+
width="1024"
78+
/>
7379
</a>
7480
</div>
7581
</mat-toolbar>

springwolf-ui/src/app/service/asset.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ export class AssetService implements IAssetService {
1515
) {}
1616

1717
public load() {
18-
this.iconRegistry.addSvgIcon(
19-
"github",
20-
this.sanitizer.bypassSecurityTrustResourceUrl("assets/github.svg")
21-
);
18+
// this.iconRegistry.addSvgIcon(
19+
// "github",
20+
// this.sanitizer.bypassSecurityTrustResourceUrl("assets/github.svg")
21+
// );
2222
}
2323
}
5.68 KB
Loading

0 commit comments

Comments
 (0)