ux: popup position in text diff view

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2026-02-10 15:02:13 +08:00
parent 3f9b611439
commit 9bc2c2e8c9

View File

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