further modifications for #4604 - support for site name in logo component
This commit is contained in:
parent
1c1c26948a
commit
c74065ff26
|
@ -9,7 +9,7 @@
|
|||
<div class="row flex-xl-nowrap gx-0">
|
||||
<div class="sidebar">
|
||||
<nav class="navbar">
|
||||
<Logo ShowName="true" />
|
||||
<Logo UseSiteNameAsFallback="true" />
|
||||
<Menu Orientation="Vertical" />
|
||||
</nav>
|
||||
</div>
|
||||
|
|
|
@ -11,16 +11,16 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
if (ShowName)
|
||||
if (UseSiteNameAsFallback)
|
||||
{
|
||||
<span class="app-logo">
|
||||
<a class="site-name" href="@PageState.Alias.Path">@PageState.Site.Name</a>
|
||||
<a class="navbar-brand" href="@PageState.Alias.Path">@PageState.Site.Name</a>
|
||||
</span>
|
||||
}
|
||||
}
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
public bool ShowName { get; set; } = false;
|
||||
public bool UseSiteNameAsFallback { get; set; } = false; // indicates if the site name should be displayed in scenarios where a site does not have a logo defined
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<main role="main">
|
||||
<nav class="navbar navbar-dark bg-primary fixed-top">
|
||||
<Logo ShowName="true" /><Menu Orientation="Horizontal" />
|
||||
<Logo UseSiteNameAsFallback="true" /><Menu Orientation="Horizontal" />
|
||||
<div class="controls ms-auto">
|
||||
<div class="controls-group">
|
||||
<Search CssClass="me-3 text-center bg-primary" />
|
||||
|
|
|
@ -117,6 +117,10 @@
|
|||
margin: .5rem;
|
||||
}
|
||||
|
||||
.app-logo .navbar-brand {
|
||||
color: white;
|
||||
}
|
||||
|
||||
@media (max-width: 767.98px) {
|
||||
.main .top-row {
|
||||
display: none;
|
||||
|
|
|
@ -269,8 +269,6 @@ app {
|
|||
min-height: 250px;
|
||||
}
|
||||
|
||||
.app-logo .site-name {
|
||||
padding: 0 20px 0 20px;
|
||||
font-size: x-large;
|
||||
color: white;
|
||||
.app-logo .navbar-brand {
|
||||
padding: 5px 20px 5px 20px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user