From 7b8d43ed9b1963b44ae99186ae7cfd630fbe5731 Mon Sep 17 00:00:00 2001 From: Ariyutta Date: Tue, 27 Oct 2026 16:32:34 +0700 Subject: [PATCH] Perbaikan Detail SK --- resources/css/app.css | 53 +++++++++++- resources/views/layouts/main.blade.php | 12 ++- .../verifikasi/sk/detail/index.blade.php | 81 +++++++++++-------- 3 files changed, 106 insertions(+), 40 deletions(-) diff --git a/resources/css/app.css b/resources/css/app.css index 09d4ebce..32e76461 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -866,8 +866,10 @@ table.dataTable thead th, .badge { padding: 5px 9px !important; font-weight: 600 !important; - border-radius: 6px !important; + border-radius: 50rem !important; letter-spacing: 0.02em; + --ct-bg-opacity: 0.6 !important; + color: #000 !important; } .btn { @@ -1155,6 +1157,18 @@ main .card:nth-of-type(4) { transform: translateY(-1px); } +/* DataTables: hanya tabel yang scroll horizontal (dibungkus .dt-scroll-x oleh JS di layout), + kontrol atas (Show/Search) dan bawah (info/pagination) tidak ikut bergeser */ +.dt-scroll-x { + width: 100%; + overflow-x: auto; + -webkit-overflow-scrolling: touch; +} + +.table-responsive:has(> .dataTables_wrapper) { + overflow-x: hidden; +} + /* Badge Micro-animation */ .badge { transition: transform 0.18s ease, box-shadow 0.18s ease !important; @@ -1234,12 +1248,43 @@ main .card:nth-of-type(4) { box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.28), 0 4px 12px rgba(15, 23, 42, 0.12) !important; } -@media (max-width: 576px) { +/* Fade in/out halus (dikontrol class .is-visible lewat JS di halaman detail SK) */ +#floatingActionBar, +#floatingActionBarBackdrop { + opacity: 0; + visibility: hidden; + transition: opacity 0.4s ease, visibility 0s linear 0.4s; +} + +#floatingActionBar { + transform: translate(-50%, 12px) !important; + transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.4s; +} + +#floatingActionBar.is-visible, +#floatingActionBarBackdrop.is-visible { + opacity: 1; + visibility: visible; + transition-delay: 0s; +} + +#floatingActionBar.is-visible { + transform: translate(-50%, 0) !important; +} + +/* Mobile: capsule diletakkan di atas tombol WhatsApp Helpdesk (tinggi tombol 52px) dengan gap 16px */ +@media (max-width: 767.98px) { #floatingActionBar { - bottom: 20px !important; + bottom: 96px !important; } #floatingActionBarBackdrop { - height: 90px; + height: 170px; + } +} + +@media (max-width: 576px) { + #floatingActionBar { + bottom: 88px !important; } } diff --git a/resources/views/layouts/main.blade.php b/resources/views/layouts/main.blade.php index 5fc2c01f..a0e60598 100644 --- a/resources/views/layouts/main.blade.php +++ b/resources/views/layouts/main.blade.php @@ -508,7 +508,7 @@ @include('layouts.topbar') -
+
@@ -1021,6 +1021,16 @@ + diff --git a/resources/views/verifikasi/sk/detail/index.blade.php b/resources/views/verifikasi/sk/detail/index.blade.php index db24dee8..f6eb90df 100644 --- a/resources/views/verifikasi/sk/detail/index.blade.php +++ b/resources/views/verifikasi/sk/detail/index.blade.php @@ -33,6 +33,17 @@ color: #fff; } + @media (max-width: 767.98px) { + #top-action-btns { + flex-wrap: nowrap !important; + } + + #top-action-btns .btn { + padding-left: 10px !important; + padding-right: 10px !important; + } + } + .lainnya-no-anggota button, .lainnya-no-anggota a.btn { pointer-events: none; @@ -253,12 +264,12 @@ @if (!($sk['finalisasi'] && $isReklaim)) @else @endif @endif @@ -270,12 +281,12 @@ @if (!($sk['finalisasi'] && $isReklaim)) @else @endif @endif @@ -284,19 +295,19 @@ @if (!$sk['finalisasi'] && !$sk['status_verifikator']) @endif @if ($sk['status_verifikator']) @endif @can('Hapus Anggota SK') @endcan @@ -310,7 +321,7 @@ - Preview + Preview @@ -382,7 +393,7 @@ Daftar Anggota - {{ ucfirst($key) }} | {{ $selectedKategori['uraian'] ?? 'Belum Dipilih' }}
-
+
@can('Verifikasi SK')
@@ -437,7 +448,7 @@
@endif -
+
0 ? 'mt-3' : '' }}'> @if (count($kegiatan['notes']) > 0)
Catatan:
    @@ -480,7 +491,7 @@
@endcan -
+
@@ -511,36 +522,36 @@ @if ($sk['visible'] ?? true) - +
@@ -614,14 +625,14 @@ @elseif ($showButtons && $sk['finalisasi'] && $isReklaim) @else @@ -630,7 +641,7 @@ style="cursor: not-allowed;"> @endif @@ -642,7 +653,7 @@ @else @@ -650,10 +661,10 @@ id="simpan-rubrik"> @if (!$sk['status_verifikator']) - Simpan + Simpan @else - Perbarui + Perbarui @endif @@ -669,12 +680,12 @@ @else @endif @@ -682,12 +693,12 @@ @else @endif @endif @@ -698,12 +709,12 @@ @if (!($sk['finalisasi'] && $isReklaim)) @else @endif @endif @@ -713,7 +724,7 @@ @endcan @@ -2742,9 +2753,9 @@ $('#btnKonfirmasiBatalkan').on('click', function() { $('#floatingSelectedCount').text(count); topBtnsVisible = isTopBtnsInView(); if (count > 0 && !topBtnsVisible) { - $('#floatingActionBar, #floatingActionBarBackdrop').stop(true, true).fadeIn(150); + $('#floatingActionBar, #floatingActionBarBackdrop').addClass('is-visible'); } else { - $('#floatingActionBar, #floatingActionBarBackdrop').stop(true, true).fadeOut(150); + $('#floatingActionBar, #floatingActionBarBackdrop').removeClass('is-visible'); } } @@ -3440,8 +3451,8 @@ $('#btnKonfirmasiBatalkan').on('click', function() { // Show/hide floating action bar based on step requirement if (step.requireFloatingBar) { - $('#floatingActionBarBackdrop').show(); - $('#floatingActionBar').css('display', 'flex'); + $('#floatingActionBarBackdrop').addClass('is-visible'); + $('#floatingActionBar').addClass('is-visible'); } else { updateFloatingBarVisibility(); } -- 2.52.0