From f7ed2e0aa8e9f44233a84ca4e2baaea6dedb674f Mon Sep 17 00:00:00 2001 From: fish <1770968958@qq.com> Date: Tue, 24 Nov 2026 01:52:35 +0900 Subject: [PATCH] fix(panel): refine context risk warning layout and prevent settings header status overlap - Collapse locked context controls out of flow so the initial risk notice fits cleanly without extra vertical void or blur bleed, and soften the Modern UI notice and danger-confirm button surfaces - Lock settings panel header titles to flex: 0 0 auto and single-line truncate long status feedback (such as exported JSON paths) with hover tooltips --- sidecars/panel/app.js | 14 +++-- sidecars/panel/index.html | 4 +- sidecars/panel/src/styles/modern-ui.css | 15 +++++ sidecars/panel/src/styles/views-settings.css | 40 ++++++++++---- .../src/views/settings/SettingsOtherTab.js | 14 +++-- sidecars/panel/styles.css | 55 +++++++++++++++---- 6 files changed, 108 insertions(+), 34 deletions(-) diff --git a/sidecars/panel/app.js b/sidecars/panel/app.js index ab09113..832878d 100644 --- a/sidecars/panel/app.js +++ b/sidecars/panel/app.js @@ -27820,8 +27820,7 @@ const SettingsOtherTab = defineComponent({ text: '', }); const maintStatusText = h('span', { - className: 'text-muted', - style: 'font-size: var(--fs-md);', + className: 'text-muted settings-panel-status', text: '', }); @@ -27859,10 +27858,12 @@ const SettingsOtherTab = defineComponent({ maintTimer = null; } patchText(maintStatusText, text); + patchAttr(maintStatusText, 'title', text || null); if (text && autoClearMs > 0) { maintTimer = setTimeout(() => { maintTimer = null; patchText(maintStatusText, ''); + patchAttr(maintStatusText, 'title', null); }, autoClearMs); } } @@ -28041,7 +28042,10 @@ const SettingsOtherTab = defineComponent({ const ctxModelLabel = h('span', { className: 'form-label' }); const ctxWindowLabel = h('span', { className: 'form-label' }); const ctxHint = h('span', { className: 'settings-hint-text' }); - const ctxStatus = h('span', { className: 'text-muted', role: 'status' }); + const ctxStatus = h('span', { + className: 'text-muted settings-panel-status', + role: 'status', + }); const ctxModelSelect = CustomSelect({ className: 'settings-context-model', searchable: true, @@ -28331,7 +28335,7 @@ const SettingsOtherTab = defineComponent({ } const baselinePanel = h('section', { className: 'panel' }, [ - h('div', { className: 'panel-header' }, [ + h('div', { className: 'panel-header settings-panel-header' }, [ h('span', { className: 'panel-title' }, [ createSvgIcon('layers', { size: 13 }), baselineTitleEl, @@ -28548,7 +28552,7 @@ const SettingsOtherTab = defineComponent({ ]); const maintPanel = h('section', { className: 'panel' }, [ - h('div', { className: 'panel-header' }, [ + h('div', { className: 'panel-header settings-panel-header' }, [ h('span', { className: 'panel-title' }, [ createSvgIcon('refresh', { size: 13 }), maintTitleEl, diff --git a/sidecars/panel/index.html b/sidecars/panel/index.html index f2fc1b9..d0604a3 100644 --- a/sidecars/panel/index.html +++ b/sidecars/panel/index.html @@ -4,11 +4,11 @@