Repository navigation
Description
Summary
On a sidebar thread row that has child threads, hovering the row moves the disclosure chevron about 30px to the left and renders the new one-click Archive button exactly where the chevron was before hover. Aiming at the chevron to collapse or expand the children therefore archives the parent thread (and its children) instead. Expected: hover must not move an already visible click target, and Archive must not appear under the pointer position the user was aiming at.
Versions and environment
- bb desktop-v0.43.1, running from source at
267938526(Linux 6.8, Node 22). The same code path is unchanged onmainat261fb87479e09c64e89f19bf8d77555d3c31aace(checked by inspection, not re-run). - Not provider specific. Desktop layout with a fine pointer; the coarse-pointer phone layout hides the hover overlay and is not affected.
Steps to reproduce
- Create a thread and spawn a child thread from it so the parent row shows the disclosure chevron.
- Give the parent a title long enough to fill the row, e.g.
Parent thread with a deliberately long title to verify stable disclosure placement. - Move the pointer onto the parent row and watch the chevron.
- Click where the chevron was before hover.
Expected vs actual
Expected: the chevron stays in place; clicking it toggles the children.
Actual: on hover the title area gains 30px of right padding, the title truncates, the chevron jumps ~30px left, and the Archive button appears at the chevron's previous position. The click archives the parent thread and its children. The undo toast makes this recoverable, but it happens every time a user aims at the chevron on a long-titled parent row.
Evidence
- The chevron is the last child of the title flex container, so it sits at the container's right edge once the title fills the row:
bb/apps/app/src/components/sidebar/ThreadRow.tsx
Lines 728 to 735 in 2679385
<SidebarChildToggleChevron isCollapsed={isParentCollapsed} expandLabel={`Expand ${labelTitle} threads`} collapseLabel={`Collapse ${labelTitle} threads`} onToggle={() => parentOptions.onToggleCollapsed(thread.id)} revealOnHover={!isParentCollapsed} /> ) : null} - The hover-only inset adds
padding-right: calc(var(--spacing) * 7.5)to that container under the same row states that reveal the overlay, which is what moves the chevron:bb/apps/app/src/components/ui/theme.css
Lines 275 to 291 in 2679385
/* Row content beside a hover-actions overlay that grows past its rest slot * (the thread row's archive button sits left of the menu trigger). Reserve * one action width under the same row states that reveal the overlay, so the * title truncates instead of running under the button. */ .bb-sidebar-hover-actions-inset { transition-property: padding; transition-duration: 0ms; } .bb-sidebar-hover-actions-row:is(:hover, :has(:focus-visible)) .bb-sidebar-hover-actions-inset, .bb-sidebar-hover-actions-row:has( .bb-sidebar-hover-actions[data-sidebar-hover-actions-open="true"] ) .bb-sidebar-hover-actions-inset { padding-right: calc(var(--spacing) * 7.5); } - The overlay is anchored
right-0and holds Archive (28px) + gap + menu (28px), so Archive lands in the 30px the chevron just vacated:bb/apps/app/src/components/sidebar/ThreadRow.tsx
Lines 797 to 800 in 2679385
<ThreadArchiveQuickAction thread={thread} className={SIDEBAR_CONTROL_BUTTON_CLASS} /> - Introduced by Add a one-click Archive button to hovered sidebar thread rows #1965 (one-click Archive on hover). Before that the overlay was a single 28px slot and nothing shifted.
What I ruled out
- Not caused by the project-label change in my fork; it reproduces on the stock
desktop-v0.43.1tag. - Not a duplicate of One-click Archive button on hover for each thread in the sidebar #1958 (that requested the button) and I found no open issue about the shift or the misclick.
- Rows without children are unaffected in practice: the title truncation is cosmetic and nothing clickable moves.
Suggested priority and effort
Hits every user who nests threads and archives from the sidebar; workaround is to collapse via keyboard or accept the undo toast. Effort is small.
Proposed fix
Parent rows (rows with children) skip the hover inset and the quick Archive button, keeping only the … menu; leaf rows keep the one-click Archive. Archiving a parent also archives its children, so requiring the menu there is a reasonable tradeoff. Implemented with tests on my fork: hxy91819@3aa38d9 (the ThreadRow.test.tsx cases assert the parent row renders the menu and chevron but no Archive button and no inset, and that leaf rows keep both). Happy to open a PR if this direction is acceptable; alternatives would be reserving the inset permanently on parent rows or moving the chevron to the leading edge.
AGENT GENERATED
Activity
bb-slop-cop commentedon Sep 17, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotClassified Bug · Medium priority · Low effort, with
uiandconfirmed-repro.REPRODUCED · high confidence. Hover adds 30px of padding around the parent disclosure while Archive expands into its former hit target. Two clean trusted-main checkouts reproduced the shift and wrong hit target using rendered component markup and production CSS; persisted archive/Undo behavior was not exercised.
Reproduction and root-cause report · Fix PR #3822
The fix reserves the action space before hover. Both new regression cases failed before and pass after; the fixed browser probe shows zero movement. All 290 relevant tests, build, typecheck, and diff checks pass. The ready PR changes 39 text lines across two files and remains unmerged.
Keep parent disclosure position stable across hover (#3822)