-
-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathWriter.razor
More file actions
30 lines (28 loc) · 1.01 KB
/
Writer.razor
File metadata and controls
30 lines (28 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@attribute [Route(Routes.WRITER)]
@inherits MSGComponentBase
<div class="inner-scrolling-context">
<MudText Typo="Typo.h3" Class="mb-2">
Writer
</MudText>
<PreviewExperimental ApplyInnerScrollingFix="true"/>
<ProviderSelection @bind-ProviderSettings="@this.providerSettings"/>
<MudButton Variant="Variant.Filled" StartIcon="@Icons.Material.Filled.Download" OnClick="@(() => this.LoadTextFile())" Color="Color.Primary" Class="mb-2">
Load a text file
</MudButton>
<InnerScrolling>
<ChildContent>
@foreach (var chunk in this.chunks)
{
<MudJustifiedText Typo="Typo.body1" Class="ma-3 write-mode-chunk">
@chunk.Content
</MudJustifiedText>
}
</ChildContent>
<FooterContent>
@if (this.isStreaming)
{
<MudProgressLinear Color="Color.Primary" Indeterminate="true" Class="mb-6" />
}
</FooterContent>
</InnerScrolling>
</div>