Skip to content

Permanent editor-style scrollbar on the Changes dock; static hover rows (upstream 6003ae11, 84d4fa18) #434

Description

@evilchinesefood

Part of #417 (upstream main after v0.11.0). Upstream commits 6003ae11 feat(changes): add a permanent editor-style scrollbar (9 files, +227/-44) and 84d4fa18 perf(diff): use static hover backgrounds in the diff sidebar rows (5 lines). Small dock polish; the second is a fork UX decision.

What upstream did

  • Permanent scrollbar: the Changes dock gets an always-visible Zed-style vertical scrollbar (15 px track, 25 px minimum thumb, 1 px left border, hover and drag tints) in its own gutter beside #diff-dock-scroll (min_w_0()), with centred track clicks and dragging. New widgets/scrollbar/geometry.rs (SCROLLBAR_SIZE, MIN_THUMB, Track, scrollbar_track, extracted from code/navigation/layout.rs of Zed minimap and scrollbar controls in dock file tabs (upstream e31cf649) #435) and widgets/editor_scrollbar.rs::EditorScrollbar (canvas paint, capture-phase mouse move/up, Rc<Cell<_>> state); DiffDockState.vertical_scrollbar. No tests.
  • Static hover: Review changed-files rows (file, directory, branch group) swap .animated_hover_bg(resting, hover) for .hover(|s| s.bg(hover)) at three sites and drop the AnimatedHoverExt imports, so a hover no longer schedules a fade animation and its redraws.

What the fork has

Port

git show 6003ae11 84d4fa18

Done when

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-for-agentReady for AI Agent to buildupstream-post-v0.11.0Port of upstream arthjean/paneflow main after v0.11.0 (unreleased, surveyed 2026-09-05 at fbfefd25)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions