aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-21 16:30:23 -0700
committerAdam Soltys <[email protected]>2026-09-21 16:30:23 -0700
commit924040f3562502699d924caff4b34516a6beb87d (patch)
tree699996dc7c8b0de33eccb24d781df518baede647 /src/app.js
parent4b7017e216d91f09657091c8abf110ff34023cef (diff)
downloadcoinosv3-924040f3562502699d924caff4b34516a6beb87d.tar.gz
coinosv3-924040f3562502699d924caff4b34516a6beb87d.zip
History: the page number is a picker — jump straight to any page.
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Tmfg8k5f3TbNJS34qiqHAp
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/app.js b/src/app.js
index 1baf9db..96f47f9 100644
--- a/src/app.js
+++ b/src/app.js
@@ -5201,7 +5201,11 @@ function pager(page, total, onPage) {
if (pages <= 1) return null;
return h('div', { class: 'row between', style: 'align-items:center;padding-top:10px' },
h('button', { class: 'btn-sm', onClick: () => onPage((page - 1 + pages) % pages) }, t('prevPage')),
- h('span', { class: 'small muted' }, t('pageXofY', { x: page + 1, y: pages })),
+ // the page number is a picker: forty pages is a long swipe to the middle
+ h('select', {
+ class: 'small muted page-pick', 'aria-label': t('pageXofY', { x: page + 1, y: pages }),
+ onChange: (e) => onPage(parseInt(e.target.value, 10) || 0),
+ }, ...Array.from({ length: pages }, (_, i) => h('option', { value: String(i), selected: i === page }, t('pageXofY', { x: i + 1, y: pages })))),
h('button', { class: 'btn-sm', onClick: () => onPage((page + 1) % pages) }, t('nextPage'))
);
}