mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-05-14 06:14:07 +00:00
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
@inherits MSGComponentBase
|
|
|
|
<style>
|
|
.select-file-button-wrapper {
|
|
height: 56px;
|
|
min-height: 56px;
|
|
max-height: 56px;
|
|
display: flex;
|
|
align-items: center;
|
|
align-self: flex-start;
|
|
flex-shrink: 0;
|
|
margin-top: 8px;
|
|
}
|
|
</style>
|
|
|
|
<MudStack Row="@true" Spacing="3" Class="mb-3" StretchItems="StretchItems.None" AlignItems="AlignItems.Start">
|
|
<MudTextField
|
|
T="string"
|
|
Text="@this.File"
|
|
Label="@this.Label"
|
|
ReadOnly="@(!this.IsClearable)"
|
|
Validation="@this.Validation"
|
|
Adornment="Adornment.Start"
|
|
AdornmentIcon="@Icons.Material.Filled.AttachFile"
|
|
UserAttributes="@SPELLCHECK_ATTRIBUTES"
|
|
Variant="Variant.Outlined"
|
|
Clearable="@this.IsClearable"
|
|
Error="@this.Error"
|
|
ErrorText="@this.ErrorText"
|
|
OnClearButtonClick="@this.OnClear"
|
|
/>
|
|
|
|
<div class="select-file-button-wrapper">
|
|
<MudButton StartIcon="@Icons.Material.Filled.FolderOpen"
|
|
Variant="Variant.Outlined"
|
|
Color="Color.Primary"
|
|
Disabled="@this.Disabled"
|
|
OnClick="@this.OpenFileDialog">
|
|
@T("Choose File")
|
|
</MudButton>
|
|
</div>
|
|
</MudStack>
|