Changeset 0.22.7 (#149)

This commit is contained in:
2026-03-04 10:44:42 +00:00
parent d8e0664fa3
commit 389e47b0f9
62 changed files with 6820 additions and 1476 deletions

View File

@@ -76,11 +76,20 @@ const PanelRegistry = {
return;
}
// Hide current active
// Hide current active (saves state + fires onClose)
if (this._active && this._active !== name) {
this._hide(this._active);
}
// Hide ALL panel pages in the body, including unregistered ones
// (e.g. sidePanelPreview which is a static placeholder)
const body = this._body();
if (body) {
body.querySelectorAll('.side-panel-page').forEach(el => {
if (el !== panel.element) el.style.display = 'none';
});
}
// Show the secondary pane
container.classList.add('open');
this._showHandle(true);