style: wrap service editor in collapsible card and make it narrower
All checks were successful
Build & Push Docker Image to Gitea Registry / build-and-push (push) Successful in 12s

This commit is contained in:
Kroonk
2026-05-21 18:26:40 +02:00
parent b3c1fbc9bd
commit 28bf2c5dfe
3 changed files with 39 additions and 11 deletions

View File

@@ -718,12 +718,19 @@ function initCollapsibleCards() {
const card = head.closest('.ops-card');
if (!card) return;
const bodyEl = card.querySelector('.services-status-board, .ops-list');
const bodyEl = card.querySelector('.services-status-board, .ops-list, .admin-table');
const id = bodyEl ? bodyEl.id : null;
const storageKey = id ? `ops-card-collapsed-${id}` : null;
if (storageKey) {
const isCollapsed = localStorage.getItem(storageKey) === 'true';
let isCollapsed;
const stored = localStorage.getItem(storageKey);
if (stored === null) {
// Default to collapsed for the service editor, expanded for others
isCollapsed = (id === 'serviceEditor');
} else {
isCollapsed = (stored === 'true');
}
card.classList.toggle('is-collapsed', isCollapsed);
}