feat: adjust pagination delta

This commit is contained in:
Damillora 2022-04-15 03:42:56 +07:00
parent 316e52cb72
commit afbdc56b71

View File

@ -4,7 +4,7 @@
const paginate = (c, m) => { const paginate = (c, m) => {
let current = c, let current = c,
last = m, last = m,
delta = 2, delta = 1,
left = current - delta, left = current - delta,
right = current + delta + 1, right = current + delta + 1,
range = [], range = [],