Admin: a folded card's readout shares its row with Configure
Folded, the status readout took a full line and Configure sat alone beneath it. The readout now moves into the bottom row beside the button, the button staying bottom-right even when a long readout wraps; opening the card puts the readout back above the form, where it was. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
cd15efa7e6
commit
bed2212850
@@ -600,6 +600,10 @@ function buildModuleCard(mod) {
|
||||
status.hidden = !open;
|
||||
save.textContent = open ? 'Apply' : 'Configure';
|
||||
save.className = open ? 'btn primary' : 'btn';
|
||||
// Folded, the readout shares the bottom row with Configure instead of
|
||||
// taking a line of its own; open, it goes back above the form.
|
||||
if (open) card.insertBefore(healthEl, mountError);
|
||||
else actions.insertBefore(healthEl, status);
|
||||
try { sessionStorage.setItem(openKey, open ? '1' : '0'); } catch { /* fine */ }
|
||||
};
|
||||
let wasOpen = false;
|
||||
|
||||
Reference in New Issue
Block a user