[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:
@@ -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";
|
||||
|
||||
@@ -487,6 +487,14 @@ small { color: var(--text-muted); }
|
||||
letter-spacing: 0.08em;
|
||||
white-space: pre;
|
||||
}
|
||||
.rds-ps-fallback {
|
||||
display: block;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
font-size: clamp(0.72rem, 1.4vw, 0.95rem);
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.04em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.rds-ps-meta {
|
||||
display: block;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
|
||||
Reference in New Issue
Block a user