Update MainLayout.razor to conditionally render app bar title based on drawer state
Modified the MainLayout component to display the app bar title only when the drawer is closed, enhancing the layout's responsiveness and user experience. This change improves the visual clarity of the application when navigating between different sections.
This commit is contained in:
@@ -9,9 +9,12 @@
|
|||||||
<MudLayout>
|
<MudLayout>
|
||||||
<MudAppBar Class="no-print">
|
<MudAppBar Class="no-print">
|
||||||
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" OnClick="@((e) => DrawerToggle())" />
|
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" OnClick="@((e) => DrawerToggle())" />
|
||||||
|
@if (!_drawerOpen)
|
||||||
|
{
|
||||||
<MudText Typo="Typo.h6" Class="text-truncate appbar-title">
|
<MudText Typo="Typo.h6" Class="text-truncate appbar-title">
|
||||||
TSA Chapter Organizer - @Configuration["ChapterSettings:Name"]
|
TSA Chapter Organizer - @Configuration["ChapterSettings:Name"]
|
||||||
</MudText>
|
</MudText>
|
||||||
|
}
|
||||||
<MudSpacer />
|
<MudSpacer />
|
||||||
<AuthorizeView>
|
<AuthorizeView>
|
||||||
<form action="Auth/CookieLogout" method="post">
|
<form action="Auth/CookieLogout" method="post">
|
||||||
|
|||||||
Reference in New Issue
Block a user