mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-03-29 13:51:37 +00:00
fixed text field bug where its rendered clutched
This commit is contained in:
parent
37a6e66466
commit
ec67ac9695
@ -48,6 +48,7 @@ else
|
|||||||
if (component is AssistantTextArea textArea)
|
if (component is AssistantTextArea textArea)
|
||||||
{
|
{
|
||||||
var lines = textArea.IsSingleLine ? 1 : 6;
|
var lines = textArea.IsSingleLine ? 1 : 6;
|
||||||
|
var autoGrow = !textArea.IsSingleLine;
|
||||||
|
|
||||||
<MudTextField T="string"
|
<MudTextField T="string"
|
||||||
Text="@this.assistantState.Text[textArea.Name]"
|
Text="@this.assistantState.Text[textArea.Name]"
|
||||||
@ -60,12 +61,12 @@ else
|
|||||||
MaxLength="@textArea.MaxLength"
|
MaxLength="@textArea.MaxLength"
|
||||||
Immediate="@textArea.IsImmediate"
|
Immediate="@textArea.IsImmediate"
|
||||||
Adornment="@textArea.GetAdornmentPos()"
|
Adornment="@textArea.GetAdornmentPos()"
|
||||||
AdornmentIcon="@textArea.GetIconSvg()"
|
AdornmentIcon="@AssistantComponentPropHelper.GetIconSvg(textArea.AdornmentIcon)"
|
||||||
AdornmentText="@textArea.AdornmentText"
|
AdornmentText="@textArea.AdornmentText"
|
||||||
AdornmentColor="@textArea.GetAdornmentColor()"
|
AdornmentColor="@textArea.GetAdornmentColor()"
|
||||||
Variant="Variant.Outlined"
|
Variant="Variant.Outlined"
|
||||||
Lines="@lines"
|
Lines="@lines"
|
||||||
AutoGrow="@true"
|
AutoGrow="@autoGrow"
|
||||||
MaxLines="12"
|
MaxLines="12"
|
||||||
Class='@MergeClass(textArea.Class, "mb-3")'
|
Class='@MergeClass(textArea.Class, "mb-3")'
|
||||||
Style="@this.GetOptionalStyle(textArea.Style)" />
|
Style="@this.GetOptionalStyle(textArea.Style)" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user