diff --git a/admin.html b/admin.html index 13ced18..2a061e8 100644 --- a/admin.html +++ b/admin.html @@ -38,13 +38,7 @@

Konfiguration

-

Dienste & Kategorien

-
-
- - - - +

System-Administration

@@ -86,10 +80,22 @@
Noch nicht geladen.
-
+ + - + diff --git a/admin.js b/admin.js index 935980b..e5ab936 100644 --- a/admin.js +++ b/admin.js @@ -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); } diff --git a/style.css b/style.css index ae8e633..a131d6d 100644 --- a/style.css +++ b/style.css @@ -1035,4 +1035,19 @@ main { } } +#editorCard { + max-width: 900px; + margin-inline: auto; +} + +.admin-actions-bar { + display: flex; + gap: 8px; + flex-wrap: wrap; + margin-bottom: 14px; + border-bottom: 1px solid var(--border); + padding-bottom: 12px; + margin-top: 8px; +} +