ux: min height of change block in minimap

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2024-11-19 16:45:07 +08:00
parent b452e13453
commit 73687689ce
No known key found for this signature in database

View file

@ -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));
}
}