Remove mat-icons in favor for ng-icons to avoid calling a cdn
Signed-off-by: trivernis <trivernis@protonmail.com>pull/4/head
parent
4d7a18b159
commit
23654e5150
@ -0,0 +1,7 @@
|
|||||||
|
::ng-deep .mat-button-wrapper > ng-icon {
|
||||||
|
font-size: 26px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::ng-deep ng-icon {
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
@ -1,12 +1,12 @@
|
|||||||
<app-content-aware-image borderRadius="0.25em" *ngIf="this.getThumbnailSupported() && this.thumbUrl"
|
<app-content-aware-image borderRadius="0.25em" *ngIf="this.getThumbnailSupported() && this.thumbUrl"
|
||||||
[imageSrc]="this.thumbUrl"></app-content-aware-image>
|
[imageSrc]="this.thumbUrl"></app-content-aware-image>
|
||||||
<div class="file-icon-overlay" *ngIf="this.getThumbnailSupported() && this.thumbUrl">
|
<div class="file-icon-overlay" *ngIf="this.getThumbnailSupported() && this.thumbUrl">
|
||||||
<mat-icon *ngIf="getFileType() === 'video'">movie</mat-icon>
|
<ng-icon *ngIf="getFileType() === 'video'" name="mat-movie"></ng-icon>
|
||||||
<mat-icon *ngIf="this.file.mime_type === 'image/gif'" class="gif-icon">gif</mat-icon>
|
<ng-icon *ngIf="this.file.mime_type === 'image/gif'" class="gif-icon" name="mat-gif"></ng-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="file-type-icon" *ngIf="!this.getThumbnailSupported() || !this.thumbUrl">
|
<div class="file-type-icon" *ngIf="!this.getThumbnailSupported() || !this.thumbUrl">
|
||||||
<mat-icon *ngIf="getFileType() === 'image'">image</mat-icon>
|
<ng-icon *ngIf="getFileType() === 'image'" name="mat-image"></ng-icon>
|
||||||
<mat-icon *ngIf="getFileType() === 'video'">movie</mat-icon>
|
<ng-icon *ngIf="getFileType() === 'video'" name="mat-movie"></ng-icon>
|
||||||
<mat-icon *ngIf="getFileType() === 'audio'">audiotrack</mat-icon>
|
<ng-icon *ngIf="getFileType() === 'audio'" name="mat-audiotrack"></ng-icon>
|
||||||
<mat-icon *ngIf="getFileType() === 'text'">description</mat-icon>
|
<ng-icon *ngIf="getFileType() === 'text'" name="mat-description"></ng-icon>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue