From 9bc2c2e8c9a852784ff601ca3cf14af778c1fe1a Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 10 Feb 2026 15:02:13 +0800 Subject: [PATCH] ux: popup position in text diff view Signed-off-by: leo --- src/Views/TextDiffView.axaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/TextDiffView.axaml.cs b/src/Views/TextDiffView.axaml.cs index 3445fd4c..43e260f3 100644 --- a/src/Views/TextDiffView.axaml.cs +++ b/src/Views/TextDiffView.axaml.cs @@ -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;