Skip to content

Commit

Permalink
fix: ziad name & configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankachlock committed Apr 19, 2024
1 parent 403cdc9 commit 7466ae7
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 8 deletions.
8 changes: 4 additions & 4 deletions backend/Zwoo.Dashboard/Data/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ public static class ZwooConfigurationExtensions
{
private static Dictionary<string, string> argMappings = new Dictionary<string, string>
{
{"--auth-authority", "zwoo:auth:authority"},
{"--auth-role", "zwoo:auth:role"},
{"--auth-client-id", "zwoo:auth:clientId"},
{"--auth-client-secret", "zwoo:auth:clientSecret"},
{"--auth-authority", "ziad:auth:authority"},
{"--auth-role", "ziad:auth:role"},
{"--auth-client-id", "ziad:auth:clientId"},
{"--auth-client-secret", "ziad:auth:clientSecret"},
};

/// <summary>
Expand Down
10 changes: 8 additions & 2 deletions backend/Zwoo.Dashboard/Shared/DevLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" Gap="0">
<RadzenSidebarToggle Click="@(() => sidebarExpanded = !sidebarExpanded)" />
<RadzenLabel>
<RadzenText TextStyle="TextStyle.DisplayH6" TagName="TagName.Span" Class="rz-m-0">Zwoo Info Admin
Dashboard</RadzenText>
<RadzenText TextStyle="TextStyle.DisplayH6" TagName="TagName.Span" Class="rz-m-0">
<span class="longName">
Zwoo Informations und
Administrations
Dashboard
</span>
<span class="shortName">ZIAD</span>
</RadzenText>
<RadzenText TextStyle="TextStyle.Caption" TagName="TagName.Span" Class="rz-m-0 rz-ml-2">@("@")
@Options.App.AppVersion</RadzenText>
</RadzenLabel>
Expand Down
12 changes: 12 additions & 0 deletions backend/Zwoo.Dashboard/Shared/DevLayout.razor.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.longName {
display: none;
}

@media only screen and (min-width: 710px) {
.longName {
display: unset !important;
}
.sortName {
display: none;
}
}
10 changes: 8 additions & 2 deletions backend/Zwoo.Dashboard/Shared/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" Gap="0">
<RadzenSidebarToggle Click="@(() => sidebarExpanded = !sidebarExpanded)" />
<RadzenLabel>
<RadzenText TextStyle="TextStyle.DisplayH6" TagName="TagName.Span" Class="rz-m-0">Zwoo
Info Admin Dashboard</RadzenText>
<RadzenText TextStyle="TextStyle.DisplayH6" TagName="TagName.Span" Class="rz-m-0">
<span class="longName">
Zwoo Informations und
Administrations
Dashboard
</span>
<span class="shortName">ZIAD</span>
</RadzenText>
<RadzenText TextStyle="TextStyle.Caption" TagName="TagName.Span" Class="rz-m-0 rz-ml-2">
@("@") @Options.App.AppVersion</RadzenText>
</RadzenLabel>
Expand Down
13 changes: 13 additions & 0 deletions backend/Zwoo.Dashboard/Shared/MainLayout.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,16 @@
height: 100vh;
max-height: calc(100vh - 100%);
}

.longName {
display: none;
}

@media only screen and (min-width: 710px) {
.longName {
display: unset !important;
}
.sortName {
display: none;
}
}

0 comments on commit 7466ae7

Please sign in to comment.