fix(storage): spacing between the enrichment tag row and action rows

The .drive-agent-extra slot stacked the agent tag row and the agent
action row with no vertical gap (and sat flush against the registry
action row). The slot is now a flex column with a .6rem gap + top
margin, hidden when empty; enrichCard's inline margin removed.
This commit is contained in:
2026-07-02 20:25:49 +02:00
parent 1b954e9217
commit 611c5ffbdf
3 changed files with 27 additions and 1 deletions
@@ -328,7 +328,7 @@ window.__registeredPaths=[{{range .StoragePaths}}{{if .Path}}"{{.Path}}",{{end}}
function enrichCard(d, registered){
var slot=document.getElementById('agent-extra-'+regKey(d));
if(!slot) return false;
var extra='<div class="metarows" style="margin:.4rem 0 0">'
var extra='<div class="metarows">'
+'<span class="metarow">'+roleTag(d.role)+'</span>'
+(d.class?'<span class="metarow">'+classTag(d)+'</span>':'')
+(d.durable_id?'<span class="metarow mono" title="Tartós azonosító">'+esc(d.durable_id)+'</span>':'')
@@ -3253,3 +3253,20 @@ span.mono, .mono { font-family: var(--font-data); }
.nav-links-nested a.active {
border-left: 3px solid var(--blue);
}
/* Unified drive view enrichment slot — breathing room between the agent tag row,
the agent action row, and the registry action row below. */
.drive-agent-extra {
display: flex;
flex-direction: column;
gap: .6rem;
margin-top: .6rem;
}
.drive-agent-extra:empty { display: none; }
.drive-agent-extra .metarows {
margin: 0;
gap: .3rem .75rem;
}
.drive-agent-extra .drive-actions {
margin: 0;
}