From b822e4d919fb67acc1f76f2c896081000b469114 Mon Sep 17 00:00:00 2001 From: c0dev0id Date: Sun, 28 Jun 2026 21:39:33 +0200 Subject: [PATCH] Article toggle: single morphing label (default/overwrite) instead of two flanking labels --- static/components/PaneFO.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/static/components/PaneFO.js b/static/components/PaneFO.js index 51153bf..3ace2ca 100644 --- a/static/components/PaneFO.js +++ b/static/components/PaneFO.js @@ -163,15 +163,13 @@ export const PaneFO = { const flip = () => { p.scope = isOverwrite ? 'defaults' : 'overwrites'; markDirty(); }; return h('li', { key: idx, style: 'display:flex;gap:0.5rem;align-items:center;padding:0.25rem 0' }, [ h('span', { style: 'flex:1' }, `${p.name} = ${p.value}`), - h('span', { class: ['se-toggle-label', !isOverwrite ? 'active' : null], style: 'text-align:right' }, 'default'), h('button', { class: 'se-toggle', role: 'switch', 'aria-checked': String(isOverwrite), - title: isOverwrite ? 'overwrites — click to switch to defaults' : 'defaults — click to switch to overwrites', onClick: flip, }), - h('span', { class: ['se-toggle-label', isOverwrite ? 'active' : null] }, 'overwrite'), + h('span', { class: 'se-toggle-label active' }, isOverwrite ? 'overwrite' : 'default'), ]); }) ),