Conditions display should be a separate page #92

This commit is contained in:
Ian Renton
2026-03-28 11:36:37 +00:00
parent 126ebcb8b2
commit 91276067b9
12 changed files with 37 additions and 47 deletions

View File

@@ -183,13 +183,10 @@ function listenForOSThemeChange() {
});
}
// Panel toggle functions.
// PANELS is the single registry of all collapsible panels. To add a new panel, add an entry here
// and provide named wrappers below. The toggle logic will automatically handle hiding other panels.
// Panel toggle functions
const PANELS = [
{ area: "#filters-area", button: "#filters-button" },
{ area: "#display-area", button: "#display-button" },
{ area: "#conditions-area", button: "#conditions-button" },
{ area: "#filters-area",button: "#filters-button" },
{ area: "#display-area", button: "#display-button" },
];
// Toggle a panel open or closed. If opening, all other visible panels are closed first.
@@ -217,8 +214,6 @@ function toggleFiltersPanel() { togglePanel("#filters-area"); }
function closeFiltersPanel() { closePanel("#filters-area"); }
function toggleDisplayPanel() { togglePanel("#display-area"); }
function closeDisplayPanel() { closePanel("#display-area"); }
function toggleConditionsPanel() { togglePanel("#conditions-area"); }
function closeConditionsPanel() { closePanel("#conditions-area"); }
// Startup