Skip to content

Commit ebad1e1

Browse files
committed
💄 Add minimum window size, fix topbar alignment
1 parent 9d6840a commit ebad1e1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Nitefox.Client.Photino/Program.cs

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ static void Main(string[] args)
2525

2626
// customize window
2727
app.MainWindow
28+
.SetMinWidth(650)
29+
.SetMinHeight(700)
2830
.SetContextMenuEnabled(false)
2931
.SetIconFile("nitefox_icon.ico")
3032
.SetTitle("Nitefox");

Nitefox.Client.Shared/Shared/MainLayout.razor

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
<MudSnackbarProvider/>
1111

1212
<MudLayout>
13-
<MudAppBar Gutters="false" Elevation="0" Class="p-0 m-0 flex">
13+
<MudAppBar Gutters="false" Elevation="0" Class="p-0 m-0 flex flex-row">
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-
<div class="fixed w-full h-full flex">
19+
<div class="fixed w-full flex">
2020
<MudImage Class="flex h-10 mx-auto my-auto" Src="images/nitefox-logo.svg"></MudImage>
2121
</div>
22-
<div class="fixed w-full h-full flex">
22+
<div class="fixed w-full flex">
2323
<MudSpacer/>
2424
@if (NavigationManager.Uri.EndsWith("settings"))
2525
{

0 commit comments

Comments
 (0)