ux: move hunk-based operation button away from scrollbar (#1382)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-06-01 20:04:15 +08:00
parent 57004c4baf
commit 80df53cf04

View File

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