diff --git a/Modix.Web/Pages/Index.razor.css b/Modix.Web/Pages/Index.razor.css new file mode 100644 index 000000000..b5336e72c --- /dev/null +++ b/Modix.Web/Pages/Index.razor.css @@ -0,0 +1,3 @@ +body { + margin: auto; +} diff --git a/Modix.Web/Pages/_Host.cshtml b/Modix.Web/Pages/_Host.cshtml index 086a84c6d..39448a326 100644 --- a/Modix.Web/Pages/_Host.cshtml +++ b/Modix.Web/Pages/_Host.cshtml @@ -10,9 +10,9 @@ - - - + + + diff --git a/Modix.Web/Setup.cs b/Modix.Web/Setup.cs index 5c42e2ca1..2a619ac92 100644 --- a/Modix.Web/Setup.cs +++ b/Modix.Web/Setup.cs @@ -1,7 +1,6 @@ using AspNet.Security.OAuth.Discord; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.Cookies; -using Microsoft.Extensions.FileProviders; using Modix.Web.Models; using Modix.Web.Security; using Modix.Web.Services; @@ -23,13 +22,6 @@ public static WebApplication ConfigureBlazorApplication(this WebApplication app) app.UseHttpsRedirection(); - var wwwrootCssFileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), "..", "Modix.Web", "wwwroot", "css")); - app.UseStaticFiles(new StaticFileOptions - { - FileProvider = wwwrootCssFileProvider, - RequestPath = "/css", - }); - app.UseStaticFiles(); app.UseRouting();