[feat](trx-frontend-http): frequency-ordered z-index and hover-to-front for RDS overlay layers

Each RDS PS overlay item (position: absolute within the shared #rds-ps-overlay
container) now receives a z-index derived from its channel frequency: items are
sorted by freq_hz ascending so higher-frequency layers sit on top of
lower-frequency ones by default.

Hovering any layer temporarily assigns it the maximum z-index (entry count + 10)
to bring it to the front; mouseleave restores the frequency-derived default
stored in data-default-z.

Also reverts the incorrectly applied vchan picker layer changes from the
previous commit.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-12 20:12:23 +01:00
parent 1fe7dc88c6
commit add0a93424
4 changed files with 13 additions and 84 deletions
@@ -392,44 +392,6 @@ input.status-input, select.status-input { width: 100%; padding: 0.45rem 0.5rem;
border-color: var(--vchan-color);
box-shadow: inset 3px 0 0 var(--vchan-color);
}
/* Frequency layers: absolutely-positioned channel strips stacked by frequency */
.vchan-freq-layers {
position: relative;
margin-top: 0.5rem;
/* height is set dynamically by vchanRenderLayers() */
}
.vchan-freq-layer {
position: absolute;
left: 0;
right: 0;
height: 2rem;
display: flex;
align-items: center;
padding: 0 0.6rem;
border-radius: 6px;
background: var(--input-bg);
border: 1px solid var(--border-light);
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: 0.82rem;
color: var(--text-muted);
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
transition: border-color 0.12s, box-shadow 0.12s;
}
.vchan-freq-layer:hover {
border-color: var(--vchan-color);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
color: var(--text);
}
.vchan-freq-layer.active {
background: var(--btn-bg);
color: var(--text);
font-weight: 600;
border-color: var(--vchan-color);
box-shadow: inset 3px 0 0 var(--vchan-color);
}
/* Applied to #freq and #spectrum-bw-input when on a virtual channel */
.vchan-ch-active {
border-color: var(--vchan-color) !important;