masastack / MASA.Template

Apache License 2.0
17 stars 9 forks source link

🐛 fix(Blazor): rtl doesn't work in SSR #80

Closed capdiem closed 3 months ago

capdiem commented 3 months ago

Fixes masastack/Masa.Blazor#1710

Program.cs: update RTL and ssr.Right.

builder.Services.AddMasaBlazor(options => {
    options.RTL = true;
    options.ConfigureSsr(ssr => {
        ssr.Right = 256;
        ssr.Top = 64;
    });
});

NavMenu.razor: add Right parameter to MNavigationDrawer

<MNavigationDrawer App Class="app-nav-drawer" Right>
...
</MNavigationDrawer>