From 73687689cefd96c456192f72830155dc2d671872 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 19 Nov 2024 16:45:07 +0800 Subject: [PATCH] ux: min height of change block in minimap 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 757690e8..544453f5 100644 --- a/src/Views/TextDiffView.axaml.cs +++ b/src/Views/TextDiffView.axaml.cs @@ -1426,7 +1426,7 @@ namespace SourceGit.Views { var brush = type == Models.TextDiffLineType.Added ? AddedLineBrush : DeletedLineBrush; var y = start / (total * 1.0) * Bounds.Height; - var h = count / (total * 1.0) * Bounds.Height; + var h = Math.Max(0.5, count / (total * 1.0) * Bounds.Height); context.DrawRectangle(brush, null, new Rect(x, y, width, h)); } }