Render timeline now indicator overlay above adjacent headings and items
Summary
Context: LibraryView rendered the 20px-tall #current-time indicator inside its 1px Row::Now (or ongoing Row::Item) row in gpui::list. Because gpui::list paints items in order, subsequent rows—such as an opaque Yesterday bucket heading or a selected/hovered note row—painted over and clipped the bottom half of the current-time badge.
Intention: Keep the current-time badge unclipped across bucket headings and adjacent items while preserving list row layout, scrolling, and sticky-header/chip layering.
Direction: Keep Row::Now as the layout anchor inside gpui::list and render the 20px #current-time element in a sibling NowIndicatorLayer element positioned from ListState::bounds_for_item right after list(...) and beneath the fade, sticky heading, chips, and context menu.
Demo
The red current-time pill renders intact across the boundary above Yesterday instead of being clipped at the top of the heading.
Verification
dprint check --allow-no-files apps/desktop-gpui/src/workspace/library.rs: passed.cargo test --locked --lib -- workspace::library(insideapps/desktop-gpui): all 5 tests passed (includingnow_indicator_overlay_extends_unclipped_across_following_heading).cargo clippy --locked --workspace --all-targets --no-deps -- -D warnings(insideapps/desktop-gpui): passed.
Summary by cubic
Fixes the timeline now-indicator badge being clipped by the following bucket heading or item row. The badge previously painted as part of a gpui::list row, so later rows drew over its bottom half. It now renders as an overlay sibling positioned from ListState::bounds_for_item, keeping it fully visible while row layout and scrolling stay unchanged.
- Adds a
NowIndicatorLayerelement that computes the badge position from the now row's item bounds and paints above list content. - Shows the badge on hover via an
on_hoverlistener andnow_hoveredstate, reset on scroll, instead of CSS-only hover. - Keeps the following heading scrollable with
.block_mouse_except_scroll(), and preserves the anchor behavior for live recordings by skipping the overlay when a recording is active. - Adds a regression test asserting the badge extends unclipped across the following heading and appears on hover there.