Refactored & unified footer border style handling

This commit is contained in:
Thorsten Sommer 2024-08-23 13:42:38 +02:00
parent e5dd2fb34c
commit 82f6a0cbde
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
3 changed files with 48 additions and 44 deletions

View File

@ -9,5 +9,10 @@
</div> </div>
</div> </div>
@if (this.FooterContent is not null)
{
<MudPaper Class="pa-3 border-solid border rounded-lg">
@this.FooterContent @this.FooterContent
</MudPaper>
}
</div> </div>

View File

@ -27,11 +27,10 @@
} }
</ChildContent> </ChildContent>
<FooterContent> <FooterContent>
<MudPaper Style="flex: 0 0 auto;"> <MudElement Style="flex: 0 0 auto;">
<MudTextField T="string" @ref="@this.inputField" @bind-Text="@this.userInput" Variant="Variant.Outlined" AutoGrow="@true" Lines="3" MaxLines="12" Label="@this.InputLabel" Placeholder="@this.ProviderPlaceholder" Adornment="Adornment.End" AdornmentIcon="@Icons.Material.Filled.Send" OnAdornmentClick="() => this.SendMessage()" ReadOnly="!this.IsProviderSelected || this.isStreaming" Immediate="@true" OnKeyUp="this.InputKeyEvent" UserAttributes="@USER_INPUT_ATTRIBUTES"/> <MudTextField T="string" @ref="@this.inputField" @bind-Text="@this.userInput" Variant="Variant.Outlined" AutoGrow="@true" Lines="3" MaxLines="12" Label="@this.InputLabel" Placeholder="@this.ProviderPlaceholder" Adornment="Adornment.End" AdornmentIcon="@Icons.Material.Filled.Send" OnAdornmentClick="() => this.SendMessage()" ReadOnly="!this.IsProviderSelected || this.isStreaming" Immediate="@true" OnKeyUp="this.InputKeyEvent" UserAttributes="@USER_INPUT_ATTRIBUTES"/>
</MudPaper> </MudElement>
<MudPaper Class="mt-1" Outlined="@true"> <MudToolBar WrapContent="true" Gutters="@false" Class="border border-solid rounded" Style="border-color: lightgrey;">
<MudToolBar WrapContent="true">
@if (this.SettingsManager.ConfigurationData.Workspace.StorageBehavior is not WorkspaceStorageBehavior.DISABLE_WORKSPACES) @if (this.SettingsManager.ConfigurationData.Workspace.StorageBehavior is not WorkspaceStorageBehavior.DISABLE_WORKSPACES)
{ {
<MudTooltip Text="Your workspaces" Placement="@TOOLBAR_TOOLTIP_PLACEMENT"> <MudTooltip Text="Your workspaces" Placement="@TOOLBAR_TOOLTIP_PLACEMENT">
@ -71,7 +70,6 @@
</MudTooltip> </MudTooltip>
} }
</MudToolBar> </MudToolBar>
</MudPaper>
</FooterContent> </FooterContent>
</InnerScrolling> </InnerScrolling>

View File

@ -10,3 +10,4 @@
- Improved the chat options readability by separating the preselection of values. - Improved the chat options readability by separating the preselection of values.
- Improved some default settings. Default key for sending input is now `Enter`. The default update check is now set to hourly. The navigation menu behavior is now set to use tooltips. - Improved some default settings. Default key for sending input is now `Enter`. The default update check is now set to hourly. The navigation menu behavior is now set to use tooltips.
- Refactored the "send to" implementation of assistants. - Refactored the "send to" implementation of assistants.
- Refactored & unified footer border style handling.