[fix](trx-frontend-http): shrink rds pi fallback display

Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-02-28 15:08:53 +01:00
parent 27c8018d89
commit b1fab91e0e
2 changed files with 10 additions and 1 deletions
@@ -3271,11 +3271,12 @@ function updateRdsPsOverlay(rds) {
const mainText = hasPs
? formatOverlayPs(ps)
: formatOverlayPi(rds?.pi);
const mainClass = hasPs ? "rds-ps-main" : "rds-ps-fallback";
const metaText = hasPs
? `${formatOverlayPi(rds?.pi)} · ${formatOverlayPty(rds?.pty, rds?.pty_name)}`
: (rds?.pty_name ?? (rds?.pty != null ? String(rds.pty) : ""));
rdsPsOverlay.innerHTML =
`<span class="rds-ps-main">${escapeMapHtml(mainText)}</span>` +
`<span class="${mainClass}">${escapeMapHtml(mainText)}</span>` +
`<span class="rds-ps-meta">${escapeMapHtml(metaText)}</span>`;
positionRdsPsOverlay();
rdsPsOverlay.style.display = "flex";