Remove the unsaved-changes legend

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Måns SivertssonandClaude Opus 5.5 committed 2026-10-13 08:46:51 +02:00
1 parent bb7a0e6a1b
commit 7f5d1bb05f
1 file changed
+1 -7
+1 -7
View File
@@ -660,7 +660,6 @@
border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); text-decoration: line-through; }
tr.removed label, tr.removed input { opacity: .75; }
tr.removed button.icon { color: var(--bad); }
.legend span { margin-right: 12px; } .legend i { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:4px; vertical-align:-1px; }
.seg { display:inline-flex; border:1px solid var(--line); border-radius:6px; overflow:hidden; vertical-align: 1px; margin-left: 10px; }
.seg button { border:0; border-radius:0; padding:2px 10px; font-size:12px; font-weight:400; }
.seg button.on { background: var(--acc); color:#fff; }
@@ -802,7 +801,6 @@
dirty = canon(effective()) !== canon(saved);
ed.save.disabled = ed.discard.disabled = !dirty;
ed.dirtyNote.textContent = dirty ? 'Unsaved changes' : '';
ed.legend.hidden = !dirty;
if (dirty) ed.errors.textContent = '';
for (const [el, [obj, key]] of bound) {
if (!el.isConnected) { bound.delete(el); continue; }
@@ -963,10 +961,6 @@
ed.tables = h('div');
ed.errors = h('div', { class: 'err' }, cfgError ? `The saved config has problems:\n${cfgError}` : '');
ed.dirtyNote = h('span', { class: 'warn small' });
ed.legend = h('span', { class: 'legend small muted', hidden: true },
h('span', {}, h('i', { style: 'background:color-mix(in srgb, var(--warn) 45%, transparent)' }), 'changed'),
h('span', {}, h('i', { style: 'background:color-mix(in srgb, var(--ok) 45%, transparent)' }), 'added'),
h('span', {}, h('i', { style: 'background:color-mix(in srgb, var(--bad) 45%, transparent)' }), 'removed on save'));
ed.save = h('button', { class: 'primary', disabled: true, onclick: () => {
try {
validateConfig(effective());
@@ -995,7 +989,7 @@
h('h2', {}, 'Current matches', live.sort), live.matches,
h('h2', {}, 'Config'),
h('div', { class: 'card' }, ed.tables,
h('div', { class: 'btns', style: 'margin-top:16px' }, ed.save, ed.discard, ed.dirtyNote, ed.legend),
h('div', { class: 'btns', style: 'margin-top:16px' }, ed.save, ed.discard, ed.dirtyNote),
ed.errors,
jsonSection()),
h('h2', {}, 'Recent changes'), h('div', { class: 'card' }, live.events),