Skip to content

Commit a68b61d

Browse files
committed
ux: background highlight margin
1 parent 26c59bf commit a68b61d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Views/TextDiffView.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public override void Render(DrawingContext context)
162162
var pen = new Pen(color.ToUInt32());
163163

164164
var x = ((Point)view.TranslatePoint(new Point(0, 0), this)).X;
165-
var rect = new Rect(x, highlightChunk.Y, view.Bounds.Width, highlightChunk.Height);
165+
var rect = new Rect(x - 4, highlightChunk.Y, view.Bounds.Width + 8, highlightChunk.Height);
166166

167167
context.DrawRectangle(brush, null, rect);
168168
context.DrawLine(pen, rect.TopLeft, rect.TopRight);

0 commit comments

Comments
 (0)