Skip to content

Commit 22d4f26

Browse files
committed
code_style: run dotnet format
Signed-off-by: leo <[email protected]>
1 parent a94c7f5 commit 22d4f26

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Views/CommitSubjectPresenter.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
1+
using System.Collections.Generic;
32
using System.Globalization;
43
using System.Text.RegularExpressions;
54

@@ -91,7 +90,7 @@ public override void Render(DrawingContext context)
9190
{
9291
_needRebuildInlines = false;
9392
GenerateFormattedTextElements();
94-
}
93+
}
9594

9695
if (_inlines.Count == 0)
9796
return;
@@ -103,7 +102,7 @@ public override void Render(DrawingContext context)
103102
if (inline.X > width)
104103
return;
105104

106-
if (inline.Element is { Type: Models.InlineElementType.Code})
105+
if (inline.Element is { Type: Models.InlineElementType.Code })
107106
{
108107
var rect = new Rect(inline.X, (height - inline.Text.Height - 2) * 0.5, inline.Text.WidthIncludingTrailingWhitespace + 8, inline.Text.Height + 2);
109108
var roundedRect = new RoundedRect(rect, new CornerRadius(4));
@@ -129,7 +128,7 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
129128
var subject = Subject;
130129
if (string.IsNullOrEmpty(subject))
131130
{
132-
_inlines.Clear();
131+
_needRebuildInlines = true;
133132
InvalidateVisual();
134133
return;
135134
}

0 commit comments

Comments
 (0)