mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-07-28 06:42:57 +00:00
Applied optimizations
This commit is contained in:
parent
20f3a90449
commit
9408ac4a36
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<MudStack Row="true" AlignItems="AlignItems.Center" Class="mb-2 mr-3" StretchItems="StretchItems.Start">
|
<MudStack Row="true" AlignItems="AlignItems.Center" Class="mb-2 mr-3" StretchItems="StretchItems.Start">
|
||||||
<MudText Typo="Typo.h3">
|
<MudText Typo="Typo.h3">
|
||||||
@(this.Title)
|
@this.Title
|
||||||
</MudText>
|
</MudText>
|
||||||
|
|
||||||
<MudIconButton Variant="Variant.Text" Icon="@Icons.Material.Filled.Settings" OnClick="() => this.OpenSettingsDialog()"/>
|
<MudIconButton Variant="Variant.Text" Icon="@Icons.Material.Filled.Settings" OnClick="() => this.OpenSettingsDialog()"/>
|
||||||
|
@ -43,7 +43,7 @@ public partial class ConfigurationText : ConfigurationBaseCore
|
|||||||
public int MaxLines { get; set; } = 12;
|
public int MaxLines { get; set; } = 12;
|
||||||
|
|
||||||
private string internalText = string.Empty;
|
private string internalText = string.Empty;
|
||||||
private Timer timer = new(TimeSpan.FromMilliseconds(500))
|
private readonly Timer timer = new(TimeSpan.FromMilliseconds(500))
|
||||||
{
|
{
|
||||||
AutoReset = false
|
AutoReset = false
|
||||||
};
|
};
|
||||||
@ -56,8 +56,6 @@ public partial class ConfigurationText : ConfigurationBaseCore
|
|||||||
await base.OnInitializedAsync();
|
await base.OnInitializedAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Overrides of ComponentBase
|
|
||||||
|
|
||||||
protected override async Task OnParametersSetAsync()
|
protected override async Task OnParametersSetAsync()
|
||||||
{
|
{
|
||||||
this.internalText = this.Text();
|
this.internalText = this.Text();
|
||||||
@ -66,8 +64,6 @@ public partial class ConfigurationText : ConfigurationBaseCore
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
private bool AutoGrow => this.NumLines > 1;
|
private bool AutoGrow => this.NumLines > 1;
|
||||||
|
|
||||||
private int GetMaxLines => this.AutoGrow ? this.MaxLines : 1;
|
private int GetMaxLines => this.AutoGrow ? this.MaxLines : 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user