commit 133754f6e8a50c272a2a33122e1df5e48cc1d823
parent 6da0c2507b4224cc90eda35a06a659b9e7f40ffe
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 19 Sep 2026 05:14:29 +0530
parent 6da0c2507b4224cc90eda35a06a659b9e7f40ffe
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 19 Sep 2026 05:14:29 +0530
Fix: Properly display title and status in side panel The previous change to show status badge next to title broke the field layout structure. Fixed by using proper flexbox layout that displays: - Title label and input on the left (flex: 1) - Status badge on the right (flex-shrink: 0) - Aligned at the bottom with gap between them This keeps the field() function structure intact while showing both elements side-by-side as intended. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/www/app.js b/www/app.js @@ -567,9 +567,9 @@ async function showDoc(id) { if (doc.mode === 'edit') { const orgs = Object.keys(app.pim || {}).sort(); side.append( - h('div', { class: 'row' }, - h('div', {}, ...field('Title (blank = use the serial number)', h('input', { id: 'f-title', value: doc.title, maxlength: 200 }))), - h('span', { class: 'status ' + doc.status }, doc.status.replace(/_/g, ' '))), + h('div', { style: 'display: flex; align-items: flex-end; gap: 0.5rem; margin-bottom: 0.5rem' }, + h('div', { style: 'flex: 1' }, ...field('Title (blank = use the serial number)', h('input', { id: 'f-title', value: doc.title, maxlength: 200 }))), + h('span', { class: 'status ' + doc.status, style: 'flex-shrink: 0' }, doc.status.replace(/_/g, ' '))), ...field('Organisation (required)', selectEl([['', '(choose)'], ...orgs.map((org) => [org, org])], doc.org_code, refitAll, { id: 'f-org' })), ...field('Series', selectEl([['', '(none)'], ...app.series.map((s) => [s.code, `${s.code} ยท ${s.pattern}`])], doc.series_code, refitAll, { id: 'f-series', disabled: !!doc.serial })), doc.serial ? h('p', { class: 'mono' }, doc.serial) : null,
: asapien/signet