Skip to content

Commit af4e00c

Browse files
committed
perf: remove ListItemBlock spacing
1 parent 4d94c84 commit af4e00c

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

src/LiveMarkdown.Avalonia.Demo/LiveMarkdown.Avalonia.Demo/ViewModels/MainViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ async IAsyncEnumerable<string> ReadBlocksAsync()
8080
{
8181
var buffer = Array.Empty<char>();
8282
using var reader = new StreamReader(markdownFilePath);
83-
while (!reader.EndOfStream && !cancellationToken.IsCancellationRequested)
83+
while (!cancellationToken.IsCancellationRequested)
8484
{
8585
var speed = Math.Max((int)RenderSpeed, 1);
8686
if (buffer.Length != speed)

src/LiveMarkdown.Avalonia.Math/LiveMarkdown.Avalonia.Math.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
1313
<RepositoryUrl>https://github.com/DearVa/LiveMarkdown.Avalonia</RepositoryUrl>
1414
</PropertyGroup>
15+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
16+
<DocumentationFile>bin\Release\LiveMarkdown.Avalonia.Math.xml</DocumentationFile>
17+
</PropertyGroup>
1518

1619
<ItemGroup>
1720
<PackageReference Include="Sylinko.CSharpMath.Avalonia"/>

src/LiveMarkdown.Avalonia/LiveMarkdown.Avalonia.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
1212
<RepositoryUrl>https://github.com/DearVa/LiveMarkdown.Avalonia</RepositoryUrl>
1313
</PropertyGroup>
14+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
15+
<DocumentationFile>bin\Release\LiveMarkdown.Avalonia.xml</DocumentationFile>
16+
</PropertyGroup>
1417

1518
<ItemGroup>
1619
<PackageReference Include="Avalonia"/>

src/LiveMarkdown.Avalonia/Styles.axaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@
144144
</Style>
145145

146146
<Style Selector="^ Grid.ListBlock">
147+
<Style Selector="^ StackPanel.ListItemBlock">
148+
<Setter Property="Spacing" Value="0"/>
149+
</Style>
150+
147151
<Style Selector="^ TextBlock.ListBlockNumber">
148152
<Setter Property="FontFamily" Value="Arial, 'Segoe UI', sans-serif"/>
149153
<Setter Property="HorizontalAlignment" Value="Right"/>

0 commit comments

Comments
 (0)