Fix review findings in the flow list polish

Search actions keep the editor focused so a wrapped box does not collapse
under the click. Header scrolls from focus move the rows too. Timeline
details always show their tooltip. A sidebar row shared by same-named
folders or programs in different places offers no path rather than an
arbitrary one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Gregory SchierandClaude Opus 5.5 authored and Stetta task tk_mw9j1flbfooxxx0a committed 2026-11-09 10:54:09 -07:00
1 parent c78732ecaf
commit 13ef9c60f1
5 files changed
+47 -4

No files matched your search

+9
View File
@@ -215,6 +215,14 @@ export function FlowList({ style, className }: Props) {
}
}, [hold, loadOlder, setFollowing, ROW_HEIGHT]);
// Focus moving to a sort button out of view scrolls the header itself; the rows follow.
const handleHeaderScroll = useCallback(() => {
const header = headerScrollRef.current;
const el = scrollRef.current;
if (header == null || el == null || header.scrollLeft === el.scrollLeft) return;
el.scrollLeft = header.scrollLeft;
}, []);
// The header scrolls the list sideways, as it has no scrollbar of its own.
const handleHeaderWheel = useCallback((e: WheelEvent<HTMLDivElement>) => {
const el = scrollRef.current;
@@ -307,6 +315,7 @@ export function FlowList({ style, className }: Props) {
<div
ref={headerScrollRef}
onWheel={handleHeaderWheel}
onScroll={handleHeaderScroll}
style={{ marginRight: scrollbarWidth }}
className="overflow-hidden"
>
@@ -42,7 +42,6 @@ export function FlowTimeline({ flow }: { flow: Flow }) {
) : (
<Tooltip
wrap
onlyWhenTruncated
content={event.detail}
delay={CONTROL_TOOLTIP_DELAY}
>
+7 -1
View File
@@ -165,7 +165,13 @@ export const SearchBar = memo(function SearchBar() {
⌘F
</kbd>
) : (
<div className="flex items-center self-center ml-1 mr-0.5">
// oxlint-disable-next-line jsx-a11y/no-static-element-interactions -- keeps focus in the editor
<div
// Pressing these leaves the editor focused, so a wrapped box does not collapse and
// move them before the click lands.
onMouseDown={(e) => e.preventDefault()}
className="flex items-center self-center ml-1 mr-0.5"
>
<Dropdown
items={[
{