💄 Fix image radius
This commit is contained in:
parent
b2324400c1
commit
8d9b8f149c
@ -91,7 +91,7 @@
|
|||||||
<img [src]="placeForm.get('image')?.value"
|
<img [src]="placeForm.get('image')?.value"
|
||||||
class="w-full max-h-20 object-cover rounded-full shadow-lg transition-transform duration-300" />
|
class="w-full max-h-20 object-cover rounded-full shadow-lg transition-transform duration-300" />
|
||||||
<div
|
<div
|
||||||
class="absolute inset-0 bg-black/50 rounded-lg flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-300">
|
class="absolute inset-0 bg-black/50 rounded-full flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-300">
|
||||||
<i class="pi pi-trash text-white text-3xl"></i>
|
<i class="pi pi-trash text-white text-3xl"></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -188,6 +188,7 @@ export class PlaceCreateModalComponent {
|
|||||||
|
|
||||||
clearImage() {
|
clearImage() {
|
||||||
this.placeForm.get("image")?.setValue(null);
|
this.placeForm.get("image")?.setValue(null);
|
||||||
|
this.placeForm.get("image_id")?.setValue(null);
|
||||||
|
|
||||||
if (this.previous_image && this.previous_image_id) {
|
if (this.previous_image && this.previous_image_id) {
|
||||||
this.placeForm.get("image_id")?.setValue(this.previous_image_id);
|
this.placeForm.get("image_id")?.setValue(this.previous_image_id);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user