Update Chapters list to make modifying a chapter take less scrolling.

This commit is contained in:
tim
2026-09-27 23:38:28 +02:00
parent 5ef68fb240
commit 407f67622b
5 changed files with 89 additions and 38 deletions
+9 -7
View File
@@ -224,9 +224,9 @@ export function storiesPage(main, _params, config) {
fill(
main,
h(
'section',
{ class: 'card' },
h('h2', {}, 'Add stories'),
'details',
{ class: 'card', open: true },
h('summary', {}, h('h2', {}, 'Add stories')),
urls,
h(
'div',
@@ -240,16 +240,18 @@ export function storiesPage(main, _params, config) {
),
),
h(
'section',
{ class: 'card' },
'details',
{ class: 'card', open: true },
h(
'div',
'summary',
{ class: 'section-heading' },
h('h2', {}, 'Stories'),
h('input', {
type: 'search',
placeholder: 'Filter',
'aria-label': 'Filter stories',
// Prevents a click here from also toggling the details open or closed.
onclick: (e) => e.preventDefault(),
oninput: (e) => {
filter = e.target.value;
if (stories) render();
@@ -258,7 +260,7 @@ export function storiesPage(main, _params, config) {
),
table,
),
h('section', { class: 'card' }, h('h2', {}, 'Jobs'), jobs.el),
h('details', { class: 'card', open: true }, h('summary', {}, h('h2', {}, 'Jobs')), jobs.el),
h('details', { class: 'card' }, h('summary', {}, h('h2', {}, 'Import an epub file')), epubImport()),
h('details', { class: 'card' }, h('summary', {}, h('h2', {}, 'Import from the library')), libraryImport(config)),
);