Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions catatan_rilis.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Di rilis ini, versi 2606.0.0 berisi penambahan dan perbaikan yang diminta penggu
2. [#1026](https://github.com/OpenSID/OpenKab/issues/1026) Perbaikan fungsi insert media dan gambar pada tinymce artikel
3. [#1032](https://github.com/OpenSID/OpenKab/issues/1032) Perbaikan Tombol enter refresh halaman di kategori artikel opensid
4. [#1037](https://github.com/OpenSID/OpenKab/issues/1037) Perbaikan Gambar desa aktif pada halaman website openkab masih statis
5. [#1039](https://github.com/OpenSID/OpenKab/issues/1039) Perbaikan Tampilan halaman web ketika belum ditambahkan gambar slider tidak tampil dengan baik

#### Perubahan Teknis

Expand Down
18 changes: 17 additions & 1 deletion public/web/css/openkab.css
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,23 @@ a {
}

@media (max-width: 768px) {
.header-carousel .owl-nav {
.header-carousel {
min-height: 350px;
}

.header-carousel .owl-carousel-item {
min-height: 350px;
display: flex;
align-items: center;
justify-content: center;
}

.header-carousel .owl-carousel-item img {
max-height: 350px;
object-fit: contain;
}

.header-carousel .owl-nav {
left: 25px;
}
}
Expand Down
8 changes: 7 additions & 1 deletion resources/views/web/partials/slider.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<div class="col-md-12 animated fadeIn">
<div class="owl-carousel header-carousel">
@php
$placeholderImage = asset('assets/img/no-image.png');
@endphp
@forelse ((new App\Http\Repository\CMS\SlideRepository)->activeSlide(5) as $slide)
<div class="owl-carousel-item">
<img class="img-fluid" src="{{ Storage::url($slide->thumbnail) }}" alt="">
<img class="img-fluid" src="{{ Storage::url($slide->thumbnail) }}" alt="" onerror="this.onerror=null;this.src='{{ $placeholderImage }}';">
</div>
@empty
<div class="owl-carousel-item">
<img class="img-fluid" src="{{ $placeholderImage }}" alt="No Slide Available">
</div>
@endforelse
</div>
</div>