Fix "send to" menu position after MudBlazor 8 upgrade

This commit is contained in:
Thorsten Sommer 2025-03-16 15:06:04 +01:00
parent dad709cccb
commit 780643779d
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 4 additions and 3 deletions
app/MindWork AI Studio
Assistants
wwwroot/changelog

View File

@ -73,7 +73,7 @@
{
@if (this.ShowSendTo)
{
<MudMenu StartIcon="@Icons.Material.Filled.Apps" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="Send to ..." Variant="Variant.Filled" Style="@this.GetSendToColor()" Class="rounded">
<MudMenu AnchorOrigin="Origin.TopLeft" TransformOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.Apps" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="Send to ..." Variant="Variant.Filled" Style="@this.GetSendToColor()" Class="rounded">
@foreach (var assistant in Enum.GetValues<Components>().Where(n => n.AllowSendTo()).OrderBy(n => n.Name().Length))
{
<MudMenuItem OnClick="() => this.SendToAssistant(assistant, new())">
@ -103,7 +103,7 @@
break;
case SendToButton sendToButton:
<MudMenu StartIcon="@Icons.Material.Filled.Apps" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="Send to ..." Variant="Variant.Filled" Style="@this.GetSendToColor()" Class="rounded">
<MudMenu AnchorOrigin="Origin.TopLeft" TransformOrigin="Origin.BottomLeft" StartIcon="@Icons.Material.Filled.Apps" EndIcon="@Icons.Material.Filled.KeyboardArrowDown" Label="Send to ..." Variant="Variant.Filled" Style="@this.GetSendToColor()" Class="rounded">
@foreach (var assistant in Enum.GetValues<Components>().Where(n => n.AllowSendTo()).OrderBy(n => n.Name().Length))
{
<MudMenuItem OnClick="() => this.SendToAssistant(assistant, sendToButton)">

View File

@ -1,4 +1,5 @@
# v0.9.37, build 212 (2025-03-16 xx:xx UTC)
- Improved the experience of the data selection component when no data sources are configured yet.
- Improved the data source selection behavior when no data source is available or selected, for whatever reason.
- Moved the data source settings into the data selection component.
- Moved the data source settings into the data selection component.
- Fixed the "send to" menu position, which was offset due to the MudBlazor 8 upgrade.