[fix](trx-frontend-http): fix axis bookmark chip positioning after name span addition

querySelectorAll("span") was picking up the inner .spectrum-bookmark-name
spans added in the previous commit, causing chips[i] to map to the wrong
element during left-position assignment.  Switch to :scope > span to
select only direct-child chip spans.

Also revert axis bar from height:auto (which breaks the CSS transition and
collapses the bar) to height:38px with overflow:visible to accommodate
two-line labels while keeping the open/close animation intact.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
2026-03-16 23:37:11 +01:00
parent 4a12d79f92
commit 0f57fb8920
2 changed files with 3 additions and 3 deletions
@@ -2901,8 +2901,8 @@ button:focus-visible, input:focus-visible, select:focus-visible {
transition: height 80ms ease;
}
#spectrum-bookmark-axis.bm-axis-visible {
min-height: 26px;
height: auto;
height: 38px;
overflow: visible;
}
.spectrum-bookmark-chip {
position: absolute;