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

View File

@ -73,7 +73,7 @@
{ {
@if (this.ShowSendTo) @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)) @foreach (var assistant in Enum.GetValues<Components>().Where(n => n.AllowSendTo()).OrderBy(n => n.Name().Length))
{ {
<MudMenuItem OnClick="() => this.SendToAssistant(assistant, new())"> <MudMenuItem OnClick="() => this.SendToAssistant(assistant, new())">
@ -103,7 +103,7 @@
break; break;
case SendToButton sendToButton: 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)) @foreach (var assistant in Enum.GetValues<Components>().Where(n => n.AllowSendTo()).OrderBy(n => n.Name().Length))
{ {
<MudMenuItem OnClick="() => this.SendToAssistant(assistant, sendToButton)"> <MudMenuItem OnClick="() => this.SendToAssistant(assistant, sendToButton)">

View File

@ -2,3 +2,4 @@
- Improved the experience of the data selection component when no data sources are configured yet. - 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. - 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.