mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
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
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user