From a68b61da9472d18ee8783f01202b3086eb5b09fa Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 17 Jul 2024 17:14:46 +0800 Subject: [PATCH] ux: background highlight margin --- 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 95409b53..9c03acad 100644 --- a/src/Views/TextDiffView.axaml.cs +++ b/src/Views/TextDiffView.axaml.cs @@ -162,7 +162,7 @@ namespace SourceGit.Views var pen = new Pen(color.ToUInt32()); var x = ((Point)view.TranslatePoint(new Point(0, 0), this)).X; - var rect = new Rect(x, highlightChunk.Y, view.Bounds.Width, highlightChunk.Height); + var rect = new Rect(x - 4, highlightChunk.Y, view.Bounds.Width + 8, highlightChunk.Height); context.DrawRectangle(brush, null, rect); context.DrawLine(pen, rect.TopLeft, rect.TopRight);