show image in dashboard
This commit is contained in:
@@ -1,4 +1,23 @@
|
||||
<style>
|
||||
|
||||
:host {
|
||||
float: left;
|
||||
}
|
||||
.dashboard-card {
|
||||
border: solid 1px red;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.size-medium {
|
||||
width: 602px;
|
||||
height: 502px;
|
||||
}
|
||||
</style>
|
||||
<p>{{data.config.query}}</p>
|
||||
<div class="dashboard-card" [ngClass]="{'size-medium' : data.size=='MEDIUM'}">
|
||||
<mat-spinner *ngIf="!thumbnailUrl && !isError"></mat-spinner>
|
||||
<img *ngIf="thumbnailUrl" src="{{thumbnailUrl}}" />
|
||||
<div *ngIf="isError">
|
||||
There was an error! This is a good time to panic!
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user