refactor: switch image place from top to bottom
This commit is contained in:
@@ -1,8 +1,3 @@
|
|||||||
@if (imgUrl()) {
|
|
||||||
<div class="image-preview__container">
|
|
||||||
<img [src]="imgUrl()" [alt]="fileName()" width="300" height="300" />
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
<input
|
<input
|
||||||
(change)="onFileSelected($event)"
|
(change)="onFileSelected($event)"
|
||||||
#fileUpload
|
#fileUpload
|
||||||
@@ -18,3 +13,8 @@
|
|||||||
<mat-icon>attach_file</mat-icon>
|
<mat-icon>attach_file</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@if (imgUrl()) {
|
||||||
|
<div class="image-preview__container">
|
||||||
|
<img [src]="imgUrl()" [alt]="fileName()" width="300" height="300" />
|
||||||
|
</div>
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
|
margin-top: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user