edit plots

This commit is contained in:
2023-03-12 08:24:16 +01:00
parent b56b4c231e
commit b5028e03be
19 changed files with 222 additions and 97 deletions

View File

@@ -3,7 +3,7 @@
float: left;
}
.dashboard-card {
border: solid 1px red;
position: relative;
display: flex;
justify-content: center;
align-items: center;
@@ -19,8 +19,23 @@
img {
cursor: zoom-in;
}
.editable-hovered {
position: absolute;
right: 0;
top: 0;
}
.dashboard-card .editable-hovered {
visibility: hidden;
}
.dashboard-card:hover .editable-hovered {
visibility: visible;
}
</style>
<div class="dashboard-card" [ngClass]="{'size-medium' : true}">
<button mat-icon-button (click)="edit()" class="editable-hovered"><img src="/assets/img/edit-outline.svg"/></button>
<mat-spinner *ngIf="!hasRender('main') && !isError"></mat-spinner>
<img *ngIf="hasRender('main')" [src]="getImageUrl('main')" (click)="showFullScreenImage()" />
<div *ngIf="isError">