[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
|
const mainText = hasPs
|
||||||
? formatOverlayPs(ps)
|
? formatOverlayPs(ps)
|
||||||
: formatOverlayPi(rds?.pi);
|
: formatOverlayPi(rds?.pi);
|
||||||
|
const mainClass = hasPs ? "rds-ps-main" : "rds-ps-fallback";
|
||||||
const metaText = hasPs
|
const metaText = hasPs
|
||||||
? `${formatOverlayPi(rds?.pi)} · ${formatOverlayPty(rds?.pty, rds?.pty_name)}`
|
? `${formatOverlayPi(rds?.pi)} · ${formatOverlayPty(rds?.pty, rds?.pty_name)}`
|
||||||
: (rds?.pty_name ?? (rds?.pty != null ? String(rds.pty) : ""));
|
: (rds?.pty_name ?? (rds?.pty != null ? String(rds.pty) : ""));
|
||||||
rdsPsOverlay.innerHTML =
|
rdsPsOverlay.innerHTML =
|
||||||
`<span class="rds-ps-main">${escapeMapHtml(mainText)}</span>` +
|
`<span class="${mainClass}">${escapeMapHtml(mainText)}</span>` +
|
||||||
`<span class="rds-ps-meta">${escapeMapHtml(metaText)}</span>`;
|
`<span class="rds-ps-meta">${escapeMapHtml(metaText)}</span>`;
|
||||||
positionRdsPsOverlay();
|
positionRdsPsOverlay();
|
||||||
rdsPsOverlay.style.display = "flex";
|
rdsPsOverlay.style.display = "flex";
|
||||||
|
|||||||
@@ -487,6 +487,14 @@ small { color: var(--text-muted); }
|
|||||||
letter-spacing: 0.08em;
|
letter-spacing: 0.08em;
|
||||||
white-space: pre;
|
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 {
|
.rds-ps-meta {
|
||||||
display: block;
|
display: block;
|
||||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||||
|
|||||||
Reference in New Issue
Block a user