update img preview in modal edit foto

This commit is contained in:
LailaWulandarii 2026-02-07 20:45:43 +07:00
parent a7f433961d
commit dc2e007529
1 changed files with 3 additions and 3 deletions

View File

@ -91,18 +91,18 @@ class="form-control @error('durasi') is-invalid @enderror"
<label class="form-label">Preview Foto</label>
<div class="border rounded d-flex justify-content-center align-items-center position-relative"
style="height: 120px; background-color: #f8f9fa; overflow: hidden;">
style="height: 158px; background-color: #f8f9fa;">
<div id="placeholder-edit-{{ $f->id_paket }}"
class="text-center text-muted d-none">
<i class="bi bi-image fs-5 mb-2"></i>
<i class="bi bi-image fs-4 mb-2"></i>
<p class="mb-0 fw-medium" style="font-size: 0.65rem;">Gambarmu akan muncul di
sini</p>
</div>
<img id="editImgPreview{{ $f->id_paket }}"
src="{{ asset('storage/' . $f->foto) }}" class="img-fluid w-100 h-100"
style="object-fit: cover; position: absolute; top: 0; left: 0;">
style="object-fit: contain;">
</div>
</div>