Fix toggle button styling and collapse groups by default
Toggle buttons now match the rest of the admin UI (same font, padding, border-radius). Both start secondary/gray; the active one turns blue. List and deck group sections are collapsed by default instead of open. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
2d663f6964
commit
5c2b5baec2
3 files changed
+6
-6
No files matched your search
+2
-2
@@ -1324,11 +1324,11 @@ function renderGroupSections(groups, renderItem) {
|
||||
const ungrouped = groups[''] || [];
|
||||
let html = '';
|
||||
for (const g of named) {
|
||||
html += `<details class="list-group" open><summary class="list-group-header">${esc(g)}</summary>${groups[g].map(renderItem).join('')}</details>`;
|
||||
html += `<details class="list-group"><summary class="list-group-header">${esc(g)}</summary>${groups[g].map(renderItem).join('')}</details>`;
|
||||
}
|
||||
if (ungrouped.length) {
|
||||
html += named.length
|
||||
? `<details class="list-group" open><summary class="list-group-header">Ungrouped</summary>${ungrouped.map(renderItem).join('')}</details>`
|
||||
? `<details class="list-group"><summary class="list-group-header">Ungrouped</summary>${ungrouped.map(renderItem).join('')}</details>`
|
||||
: ungrouped.map(renderItem).join('');
|
||||
}
|
||||
return html || '<p class="hint">None yet.</p>';
|
||||
|
||||
Reference in new issue
Block a user