sroll untuk
This commit is contained in:
@@ -250,7 +250,7 @@
|
||||
max-height: calc(100% - 2rem);
|
||||
overflow-y: auto;
|
||||
padding: .875rem;
|
||||
pointer-events: none;
|
||||
pointer-events: auto;
|
||||
position: absolute;
|
||||
right: 1rem;
|
||||
top: 1rem;
|
||||
@@ -1124,10 +1124,9 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
return `<div class="produksi-map-information-empty">${emptyLabel}</div>`;
|
||||
}
|
||||
|
||||
const visibleRows = rows.slice(0, 5);
|
||||
const maxValue = Math.max(...visibleRows.map(row => Number(row.jumlah || 0)), 1);
|
||||
const maxValue = Math.max(...rows.map(row => Number(row.jumlah || 0)), 1);
|
||||
|
||||
const bars = visibleRows.map(function (row) {
|
||||
return rows.map(function (row) {
|
||||
const value = Number(row.jumlah || 0);
|
||||
const width = Math.max(value > 0 ? 3 : 0, (value / maxValue) * 100);
|
||||
|
||||
@@ -1143,11 +1142,6 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
</div>
|
||||
`;
|
||||
}).join('');
|
||||
|
||||
const remaining = rows.length - visibleRows.length;
|
||||
return bars + (remaining > 0
|
||||
? `<div class="produksi-map-information-empty">+ ${formatNumber(remaining, 0)} kategori lainnya</div>`
|
||||
: '');
|
||||
};
|
||||
|
||||
element.innerHTML = `
|
||||
|
||||
Reference in New Issue
Block a user