Skip to content

Commit 7368768

Browse files
committed
ux: min height of change block in minimap
Signed-off-by: leo <[email protected]>
1 parent b452e13 commit 7368768

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
@@ -1426,7 +1426,7 @@ private void RenderBlock(DrawingContext context, Models.TextDiffLineType type, i
14261426
{
14271427
var brush = type == Models.TextDiffLineType.Added ? AddedLineBrush : DeletedLineBrush;
14281428
var y = start / (total * 1.0) * Bounds.Height;
1429-
var h = count / (total * 1.0) * Bounds.Height;
1429+
var h = Math.Max(0.5, count / (total * 1.0) * Bounds.Height);
14301430
context.DrawRectangle(brush, null, new Rect(x, y, width, h));
14311431
}
14321432
}

0 commit comments

Comments
 (0)