mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-27 02:33:38 +00:00
Turn off the default drop target in three places
This commit is contained in:
parent
fb2f38a60a
commit
d1b471359b
@ -42,9 +42,12 @@
|
|||||||
}
|
}
|
||||||
</MudSelect>
|
</MudSelect>
|
||||||
|
|
||||||
|
@* No default target in this assistant on purpose. It is long enough to scroll, so the zone which
|
||||||
|
would catch everything is usually off screen -- and a file disappearing into something the user
|
||||||
|
cannot see is worse than a drop which does nothing. Here, every zone has to be aimed at. *@
|
||||||
@if (this.promptSource is BatchProcessingPromptSource.FREE_PROMPT)
|
@if (this.promptSource is BatchProcessingPromptSource.FREE_PROMPT)
|
||||||
{
|
{
|
||||||
<ReadFileContent Text="@T("Load prompt from file")" @bind-FileContent="@this.freePrompt" EnableDragDrop="true" CatchAllDocuments="true" Disabled="@this.isProcessingBatch"/>
|
<ReadFileContent Text="@T("Load prompt from file")" @bind-FileContent="@this.freePrompt" EnableDragDrop="true" Disabled="@this.isProcessingBatch"/>
|
||||||
|
|
||||||
<MudTextField T="string" @bind-Text="@this.freePrompt" Validation="@this.ValidateFreePrompt" Immediate="@true" Disabled="@this.isProcessingBatch" Label="@T("What should the AI do with each document?")" HelperText="@T("These instructions are applied to every single document of the batch run.")" Variant="Variant.Outlined" Margin="Margin.Normal" Lines="5" AutoGrow="@true" MaxLines="26" Class="mb-3" UserAttributes="@USER_INPUT_ATTRIBUTES"/>
|
<MudTextField T="string" @bind-Text="@this.freePrompt" Validation="@this.ValidateFreePrompt" Immediate="@true" Disabled="@this.isProcessingBatch" Label="@T("What should the AI do with each document?")" HelperText="@T("These instructions are applied to every single document of the batch run.")" Variant="Variant.Outlined" Margin="Margin.Normal" Lines="5" AutoGrow="@true" MaxLines="26" Class="mb-3" UserAttributes="@USER_INPUT_ATTRIBUTES"/>
|
||||||
|
|
||||||
@ -52,7 +55,7 @@
|
|||||||
}
|
}
|
||||||
else if (this.promptSource is BatchProcessingPromptSource.FILE_IMPORT)
|
else if (this.promptSource is BatchProcessingPromptSource.FILE_IMPORT)
|
||||||
{
|
{
|
||||||
<ReadFileContent Text="@T("Select the file with your instructions")" @bind-FileContent="@this.ImportedPrompt" Filter="@([FileTypes.MARKDOWN])" ShowAttachedDocumentState="@true" EnableDragDrop="true" CatchAllDocuments="true" Disabled="@this.isProcessingBatch"/>
|
<ReadFileContent Text="@T("Select the file with your instructions")" @bind-FileContent="@this.ImportedPrompt" Filter="@([FileTypes.MARKDOWN])" ShowAttachedDocumentState="@true" EnableDragDrop="true" Disabled="@this.isProcessingBatch"/>
|
||||||
|
|
||||||
@if (!string.IsNullOrWhiteSpace(this.promptFilePath))
|
@if (!string.IsNullOrWhiteSpace(this.promptFilePath))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -121,10 +121,11 @@
|
|||||||
<MudPaper Outlined="true" Class="pa-4 h-100">
|
<MudPaper Outlined="true" Class="pa-4 h-100">
|
||||||
<MudText Typo="Typo.h5">@T("Source material")</MudText>
|
<MudText Typo="Typo.h5">@T("Source material")</MudText>
|
||||||
<MudText Typo="Typo.body2" Class="mb-2">@T("Documents, spreadsheets, images, audio, and video are considered as source context.")</MudText>
|
<MudText Typo="Typo.body2" Class="mb-2">@T("Documents, spreadsheets, images, audio, and video are considered as source context.")</MudText>
|
||||||
|
@* No default target on purpose: with two zones side by side, the
|
||||||
|
user has to aim at the one they mean. *@
|
||||||
<AttachDocuments Name="Visual briefing source material"
|
<AttachDocuments Name="Visual briefing source material"
|
||||||
@bind-DocumentPaths="@this.editor.SourceMaterial"
|
@bind-DocumentPaths="@this.editor.SourceMaterial"
|
||||||
OnChange="@this.EnforceSourceExclusivityAsync"
|
OnChange="@this.EnforceSourceExclusivityAsync"
|
||||||
CatchAllDocuments="true"
|
|
||||||
UseSmallForm="false"
|
UseSmallForm="false"
|
||||||
Provider="@this.editor.Provider"
|
Provider="@this.editor.Provider"
|
||||||
Disabled="@this.IsCurrentBusy"/>
|
Disabled="@this.IsCurrentBusy"/>
|
||||||
|
|||||||
@ -94,7 +94,6 @@
|
|||||||
Name="ChatTemplateFileAttachments"
|
Name="ChatTemplateFileAttachments"
|
||||||
@bind-DocumentPaths="@this.fileAttachments"
|
@bind-DocumentPaths="@this.fileAttachments"
|
||||||
UseSmallForm="false"
|
UseSmallForm="false"
|
||||||
CatchAllDocuments="true"
|
|
||||||
ValidateMediaFileTypes="false"
|
ValidateMediaFileTypes="false"
|
||||||
Disabled="@this.IsReadOnly"
|
Disabled="@this.IsReadOnly"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user