Skip to content

Commit e4df6b9

Browse files
fix(web): dragging a sidebar thread no longer scrolls the list out from under the pointer
The Settled drop hint scrolled itself into view on every drag, so a tall sidebar jumped to the bottom as soon as a drag started. Reveal it only while Settled is the drop target. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 15707a8 commit e4df6b9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/web/src/components/sidebar/SidebarListMarkers.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ export function SidebarSectionPlaceholder(props: {
5656
marker={props.marker}
5757
data-testid={`sidebar-${props.marker}`}
5858
className="relative mx-0.5 -mb-px h-0"
59-
revealOverflow={props.marker === "settled-placeholder" && props.showHint}
59+
// Revealing on every drag scrolls the list out from under the pointer.
60+
revealOverflow={
61+
props.marker === "settled-placeholder" && props.showHint && props.isDropTarget
62+
}
6063
>
6164
{props.showHint ? (
6265
<div

0 commit comments

Comments
 (0)