ux: stage/unstage/discard button aligment in TextDiffView

This commit is contained in:
leo 2024-08-07 19:42:41 +08:00
parent d4b0958f67
commit 7ff92c4e1d
No known key found for this signature in database

View file

@ -1085,7 +1085,7 @@ namespace SourceGit.Views
return; return;
} }
var top = chunk.Y + 16; var top = chunk.Y + (chunk.Height >= 36 ? 16 : 4);
var right = (chunk.Combined || !chunk.IsOldSide) ? 16 : v.Bounds.Width * 0.5f + 16; var right = (chunk.Combined || !chunk.IsOldSide) ? 16 : v.Bounds.Width * 0.5f + 16;
v.Popup.Margin = new Thickness(0, top, right, 0); v.Popup.Margin = new Thickness(0, top, right, 0);
v.Popup.IsVisible = true; v.Popup.IsVisible = true;