Skip to content

[UI Bug] Plannotator vertical spacing changes when expanding a file diff #2713

Closed

Description

@barreiroleo

What happened?

Hi hi!

During a review in Plannotator, clicking on a file to expand its diff changes the vertical spacing between items in the file list. This causes the previously listed file to move under the cursor and changes the focused file. See the cursor pointer in the screenshots, it's at the same position in both captures

Expected Behavior:

Expanding a file should preserve consistent vertical spacing between list items, keeping the cursor over the selected file.

Image Image

Thanks, Leo

Plannotator version

plannotator 0.28.49

OS

Linux

Agent

OpenCode

Where did it happen?

Code review

Browser

Brave 1.98.63 - Chromium: 156.0.8078.80

Activity

  1. backnotprop commented on Nov 7, 2026

    @backnotprop
    Owner

    Thanks, Leo, and thank you for the screenshots with the cursor in the same place. They made it easy to reproduce. There were two causes: in the "All changes" list, opening a file pushed every header below it down by a few pixels (the diff layout reserved a gap our theme never draws), and with "Hide viewed" on, the file you just left disappeared and the rows below jumped up. Both are fixed in #2817, merged today: the list now stays put under your pointer. It goes out in the next release.

  2. barreiroleo commented on Nov 7, 2026

    @barreiroleo
    Author

    Awesome, thanks!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions