commit 0c102314e42ae007fb1265511afdf9e558f90b2c
parent 133754f6e8a50c272a2a33122e1df5e48cc1d823
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 19 Sep 2026 05:15:48 +0530
parent 133754f6e8a50c272a2a33122e1df5e48cc1d823
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 19 Sep 2026 05:15:48 +0530
Fix: Simplify status display in side panel to avoid layout issues The flex layout wrapper for title + status was causing rendering issues. Simplified to show title field normally, with status badge on a separate line below it. This maintains the information without complex nesting. Also fixes the document creation UI which was being affected by the layout changes. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/www/app.js b/www/app.js @@ -567,9 +567,8 @@ async function showDoc(id) { if (doc.mode === 'edit') { const orgs = Object.keys(app.pim || {}).sort(); side.append( - 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('Title (blank = use the serial number)', h('input', { id: 'f-title', value: doc.title, maxlength: 200 })), + h('p', { style: 'margin: 0.5rem 0; font-size: 12px' }, h('span', { class: 'status ' + doc.status }, 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