show fullscreen image

This commit is contained in:
2023-03-04 09:48:29 +01:00
parent c57b53ccc6
commit 9e53022b4a
13 changed files with 145 additions and 42 deletions

View File

@@ -0,0 +1,11 @@
<style>
button {
position: absolute;
top: 1rem;
right: 1rem;
}
</style>
<img [src]="data.imageUrl" (click)="close()" />
<button mat-icon-button mat-dialog-close cdkFocusInitial><img src="assets/img/close.svg" class="icon-small" /></button>

View File

@@ -0,0 +1,16 @@
import { Component, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
@Component({
selector: 'app-full-screen-plot-dialog',
templateUrl: './full-screen-plot-dialog.component.html'
})
export class FullScreenPlotDialogComponent {
constructor(public dialogRef: MatDialogRef<void>, @Inject(MAT_DIALOG_DATA) public data: {imageUrl: string}){}
close(): void {
this.dialogRef.close();
}
}