From 3099baa0c5d613a6bddc5f041802cff400662881 Mon Sep 17 00:00:00 2001 From: floribe2000 Date: Thu, 14 Sep 2023 22:47:10 +0200 Subject: [PATCH] update MudBlazor and enable legacy popover behaviour --- .../Infrastructure/Utility/ServiceCollectionExtensions.cs | 6 +++++- WoWsShipBuilder.Common/WoWsShipBuilder.Common.csproj | 2 +- WoWsShipBuilder.Web/WoWsShipBuilder.Web.csproj | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/WoWsShipBuilder.Common/Infrastructure/Utility/ServiceCollectionExtensions.cs b/WoWsShipBuilder.Common/Infrastructure/Utility/ServiceCollectionExtensions.cs index c2f7aa5f3..d4c98edbc 100644 --- a/WoWsShipBuilder.Common/Infrastructure/Utility/ServiceCollectionExtensions.cs +++ b/WoWsShipBuilder.Common/Infrastructure/Utility/ServiceCollectionExtensions.cs @@ -16,7 +16,11 @@ public static class ServiceCollectionExtensions { public static IServiceCollection UseShipBuilder(this IServiceCollection services) { - services.AddMudServices(config => { config.SnackbarConfiguration.PositionClass = Defaults.Classes.Position.BottomRight; }); + services.AddMudServices(config => + { + config.SnackbarConfiguration.PositionClass = Defaults.Classes.Position.BottomRight; + config.PopoverOptions.Mode = PopoverMode.Legacy; + }); services.AddSingleton(); services.AddSingleton(); if (OperatingSystem.IsBrowser()) diff --git a/WoWsShipBuilder.Common/WoWsShipBuilder.Common.csproj b/WoWsShipBuilder.Common/WoWsShipBuilder.Common.csproj index ca2c24643..51085c0a7 100644 --- a/WoWsShipBuilder.Common/WoWsShipBuilder.Common.csproj +++ b/WoWsShipBuilder.Common/WoWsShipBuilder.Common.csproj @@ -13,7 +13,7 @@ - + diff --git a/WoWsShipBuilder.Web/WoWsShipBuilder.Web.csproj b/WoWsShipBuilder.Web/WoWsShipBuilder.Web.csproj index 7d2aa3117..b30803185 100644 --- a/WoWsShipBuilder.Web/WoWsShipBuilder.Web.csproj +++ b/WoWsShipBuilder.Web/WoWsShipBuilder.Web.csproj @@ -14,7 +14,7 @@ - +