diff --git a/skills/visual/assets/template.html b/skills/visual/assets/template.html index 12eec105..1ea650ec 100644 --- a/skills/visual/assets/template.html +++ b/skills/visual/assets/template.html @@ -195,6 +195,8 @@ .flowing svg .edge { opacity: .8; } @keyframes flowdash { to { stroke-dashoffset: -160; } } /* intake badges and the view tour: a ticket dot rides the loop while flow is on */ + svg .n-logo { fill: #fff; stroke: var(--border-2); stroke-width: .8; } + .ph .big.logo { background: #fff !important; box-shadow: inset 0 0 0 1px var(--border-2); } svg .intake-chip { fill: #fff; stroke: var(--border-2); stroke-width: 1.2; } svg .intake-tx { fill: var(--muted); font: 600 10.5px var(--sans); } svg .intake-chip.dashed { fill: var(--panel); stroke: var(--w-feeds); stroke-dasharray: 3 3; } @@ -775,7 +777,7 @@ const px = n.emphasis ? 15 : 13; const sub = n.sub || n.sublabel || ''; return Math.min(n.emphasis ? 205 : 240, Math.max(n.emphasis ? 146 : 138, - Math.ceil(textW(n.label, px) + 38), Math.min(205, Math.ceil(textW(sub, 10) + 24)))); + Math.ceil(textW(n.label, px) + (n.logo ? 72 : 38)), Math.min(205, Math.ceil(textW(sub, 10) + 24)))); }; /* Geometry: node boxes, ports, orthogonal routes, label slots. */ function layoutGraph(dg, map) { @@ -1177,7 +1179,8 @@ const subTxt = n.sub || (map && n.origin ? n.origin : '') || (map ? (n.what ? n.what.replace(/[`*]/g, '').split(/(?<=\.)\s/)[0] : KIND[n.k][1]) : ''); const sub = subTxt && !verbs ? fit(subTxt, 10, n.w - 24) : ''; const labelPx = n.emphasis ? 15 : 13; - const lpx = textW(n.label, labelPx) > n.w - 30 ? Math.max(11, (n.w - 30) / (String(n.label).length * 0.6)) : labelPx; + const lw = n.w - (n.logo ? 72 : 30); // a logo tile reaches 27 px in: its card keeps the name 36 px clear + const lpx = textW(n.label, labelPx) > lw ? Math.max(11, lw / (String(n.label).length * 0.6)) : labelPx; const ly = n.y + n.h / 2 + (sub || verbs ? -3 : 4); s += ` ${esc(n.label)}${subTxt ? ' · ' + esc(subTxt) : ''}${n.note ? '\n' + esc(n.note) : ''}${kids ? '\nDouble-click to open' : ''}`; @@ -1188,8 +1191,9 @@ else s += ` `; s += ` -${SIGIL[n.k]} - ${esc(fit(n.label, lpx, n.w - 30))}`; +${n.logo ? `