Skip to content

Commit a19d20b

Browse files
committed
Change default snackbar position
1 parent 84fe869 commit a19d20b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Program.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using GithubStarSearch;
33
using GithubStarSearch.Components;
44
using GithubStarSearch.Searching;
5+
using MudBlazor;
56
using MudBlazor.Services;
67
using Octokit;
78
using Serilog;
@@ -15,7 +16,10 @@
1516
outputTemplate: "[{Timestamp:HH:mm:ss} {Level:u3}] {SourceContext} {Message:lj}{NewLine}{Exception}"));
1617

1718
// Add MudBlazor services
18-
builder.Services.AddMudServices();
19+
builder.Services.AddMudServices(config =>
20+
{
21+
config.SnackbarConfiguration.PositionClass = Defaults.Classes.Position.TopLeft;
22+
});
1923

2024
// Add services to the container.
2125
builder.Services.AddRazorComponents()

0 commit comments

Comments
 (0)