Skip to content

Commit a82d072

Browse files
committed
💄 Fix topbar content alignment
1 parent 00a92f2 commit a82d072

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

Nitefox.Client.Shared/Shared/MainLayout.razor

+23-19
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,34 @@
1010
<MudSnackbarProvider/>
1111

1212
<MudLayout>
13-
<MudAppBar Gutters="false" Elevation="0" Class="p-0 m-0">
13+
<MudAppBar Gutters="false" Elevation="0" Class="p-0 m-0 flex">
1414
<div class="flex opacity-0 flex-row my-auto mx-3 align-self-end rounded-lg bg-[#1f1f1f] active:bg-[#1a1a1a] p-3 text-white" hidden>
1515
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
1616
<path stroke-linecap="round" stroke-linejoin="round" d="M9 15L3 9m0 0l6-6M3 9h12a6 6 0 010 12h-3"/>
1717
</svg>
1818
</div>
19-
<MudImage Class="flex h-10 mx-auto my-auto" Src="images/nitefox-logo.svg"></MudImage>
20-
@if (NavigationManager.Uri.EndsWith("settings"))
21-
{
22-
<button @onclick="@OpenHome" class="flex flex-row my-auto mx-3 align-self-end rounded-lg bg-[#1f1f1f] active:bg-[#1a1a1a] p-3 text-white">
23-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
24-
<path stroke-linecap="round" stroke-linejoin="round" d="M9 15L3 9m0 0l6-6M3 9h12a6 6 0 010 12h-3"/>
25-
</svg>
26-
</button>
27-
}
28-
else
29-
{
30-
<button @onclick="@OpenSettings" class="flex flex-row my-auto mx-3 align-self-end rounded-lg bg-[#1f1f1f] active:bg-[#1a1a1a] p-3 text-white">
31-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
32-
<path stroke-linecap="round" stroke-linejoin="round" d="M10.5 6h9.75M10.5 6a1.5 1.5 0 11-3 0m3 0a1.5 1.5 0 10-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m-9.75 0h9.75"/>
33-
</svg>
34-
</button>
35-
}
36-
19+
<div class="fixed w-full h-full flex">
20+
<MudImage Class="flex h-10 mx-auto my-auto" Src="images/nitefox-logo.svg"></MudImage>
21+
</div>
22+
<div class="fixed w-full h-full flex">
23+
<MudSpacer/>
24+
@if (NavigationManager.Uri.EndsWith("settings"))
25+
{
26+
<button @onclick="@OpenHome" class="flex flex-row my-auto mx-3 align-self-end rounded-lg bg-[#1f1f1f] active:bg-[#1a1a1a] p-3 text-white">
27+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
28+
<path stroke-linecap="round" stroke-linejoin="round" d="M9 15L3 9m0 0l6-6M3 9h12a6 6 0 010 12h-3"/>
29+
</svg>
30+
</button>
31+
}
32+
else
33+
{
34+
<button @onclick="@OpenSettings" class="flex flex-row my-auto mx-3 align-self-end rounded-lg bg-[#1f1f1f] active:bg-[#1a1a1a] p-3 text-white">
35+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
36+
<path stroke-linecap="round" stroke-linejoin="round" d="M10.5 6h9.75M10.5 6a1.5 1.5 0 11-3 0m3 0a1.5 1.5 0 10-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m-9.75 0h9.75"/>
37+
</svg>
38+
</button>
39+
}
40+
</div>
3741
</MudAppBar>
3842
<MudMainContent Class="flex flex-column h-screen">
3943
@Body

0 commit comments

Comments
 (0)