Fix formatting and structure of MudSelectItem components across dialogs

This commit is contained in:
Thorsten Sommer 2025-04-20 12:40:40 +02:00
parent 56e3064e74
commit 1209e1724c
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 9 additions and 3 deletions

View File

@ -52,10 +52,12 @@
{
if (host.AreEmbeddingsSupported())
{
<MudSelectItem Value="@host">@host.Name()</MudSelectItem>
}
}
</MudSelect>
<MudSelectItem Value="@host">
@host.Name()
</MudSelectItem>
<MudStack Row="@true" AlignItems="AlignItems.Center">
@if (this.DataLLMProvider.IsEmbeddingModelProvidedManually(this.DataHost))

View File

@ -10,7 +10,9 @@
<MudSelect @bind-Value="@this.DataLLMProvider" Label="Provider" Class="mb-3" OpenIcon="@Icons.Material.Filled.AccountBalance" AdornmentColor="Color.Info" Adornment="Adornment.Start" Validation="@this.providerValidation.ValidatingProvider">
@foreach (LLMProviders provider in Enum.GetValues(typeof(LLMProviders)))
{
<MudSelectItem Value="@provider">@provider.ToName()</MudSelectItem>
<MudSelectItem Value="@provider">
@provider.ToName()
</MudSelectItem>
}
</MudSelect>
<MudButton Disabled="@(!this.DataLLMProvider.ShowRegisterButton())" Variant="Variant.Filled" Size="Size.Small" StartIcon="@Icons.Material.Filled.OpenInBrowser" Href="@this.DataLLMProvider.GetCreationURL()" Target="_blank">Create account</MudButton>
@ -50,7 +52,9 @@
<MudSelect Disabled="@(!this.DataLLMProvider.IsHostNeeded())" @bind-Value="@this.DataHost" Label="Host" Class="mb-3" OpenIcon="@Icons.Material.Filled.ExpandMore" AdornmentColor="Color.Info" Adornment="Adornment.Start" Validation="@this.providerValidation.ValidatingHost">
@foreach (Host host in Enum.GetValues(typeof(Host)))
{
<MudSelectItem Value="@host">@host.Name()</MudSelectItem>
<MudSelectItem Value="@host">
@host.Name()
</MudSelectItem>
}
</MudSelect>
}