Skip to content

Commit 80df53c

Browse files
committed
ux: move hunk-based operation button away from scrollbar (#1382)
Signed-off-by: leo <[email protected]>
1 parent 57004c4 commit 80df53c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Views/TextDiffView.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,8 +1748,8 @@ static TextDiffView()
17481748
return;
17491749
}
17501750

1751-
var top = chunk.Y + (chunk.Height >= 36 ? 16 : 4);
1752-
var right = (chunk.Combined || !chunk.IsOldSide) ? 16 : (v.Bounds.Width * 0.5f) + 16;
1751+
var top = chunk.Y + (chunk.Height >= 36 ? 8 : 2);
1752+
var right = (chunk.Combined || !chunk.IsOldSide) ? 26 : (v.Bounds.Width * 0.5f) + 26;
17531753
v.Popup.Margin = new Thickness(0, top, right, 0);
17541754
v.Popup.IsVisible = true;
17551755
});

0 commit comments

Comments
 (0)