Skip to content

fix: keep blame metadata aligned while scrolling - #2641

Open
gadfly3173 wants to merge 1 commit into
sourcegit-scm:developfrom
gadfly3173:fix/blame-margin-scroll-alignment
Open

fix: keep blame metadata aligned while scrolling#2641
gadfly3173 wants to merge 1 commit into
sourcegit-scm:developfrom
gadfly3173:fix/blame-margin-scroll-alignment

Conversation

@gadfly3173

Copy link
Copy Markdown
Contributor

Blame metadata could drift away from source lines when the first visible commit group started above the viewport. Large groups could also clip their hash at the top or make adjacent labels overlap, while measuring only visible lines could change the margin width during scrolling.

Align metadata with AvaloniaEdit line centers, protect the first group only when there is enough room, and measure all blame data consistently so scrolling keeps labels stable and readable.

Before:

image image

@love-linger

Copy link
Copy Markdown
Collaborator

I just pushed a commit that makes this UI easier to understand

@gadfly3173

Copy link
Copy Markdown
Contributor Author
image

Currently it would just not show the first chunk's metadata.

Blame metadata could drift away from source lines when the first visible commit group started above the viewport. Large groups could also clip their hash at the top or make adjacent labels overlap, while measuring only visible lines could change the margin width during scrolling.

Align metadata with AvaloniaEdit line centers, protect the first group only when there is enough room, and measure all blame data consistently so scrolling keeps labels stable and readable.
@gadfly3173
gadfly3173 force-pushed the fix/blame-margin-scroll-alignment branch from 82cc4bc to a62f824 Compare August 21, 2026 09:00
@gadfly3173

Copy link
Copy Markdown
Contributor Author
image

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants